os.c
1.0.3
OS.C : petite bibliothèque C pour connaître votre système d'exploitation.
Installation à l'aide de 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);Renvoyez le système d'exploitation que vous utilisez.
void : il ne faut aucun paramètre | Système opérateur | operating_system() |
|---|---|
| macos | macOS |
| Fenêtre 32 | win32 |
| Fenêtre 64 | win64 |
| Unix | unix |
| Linux | linux |
| BSD gratuit | freeBSD |
| Autre | other |
| Carlos Abraham |
Licence MIT © Carlos Abraham