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("%s\n", operating_system());
// macOS
return 0;
}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 |
- os: cli tool for this library.
| Carlos Abraham |
MIT License © Carlos Abraham