os.c
1.0.3
os.c: Small C library to know your operating system.
Installing using Clib
$ clib install abranhe/os.c#include <stdio.h>
#include "os.h"
int main()
{
printf("%sn", operating_system());
// macOS
return 0;
}char *operating_system(void);Return the operating system you are using.
void: It takes no parameters| Operating System | operating_system() |
|---|---|
| macOS | macOS |
| Window 32 | win32 |
| Window 64 | win64 |
| Unix | unix |
| Linux | linux |
| Free BSD | freeBSD |
| Other | other |
| Carlos Abraham |
MIT License © Carlos Abraham