os.c
1.0.3
OS.C :小C庫知道您的操作系統。
使用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);返回您使用的操作系統。
void :不需要參數| 作業系統 | operating_system() |
|---|---|
| macos | macOS |
| 窗口32 | win32 |
| 窗口64 | win64 |
| Unix | unix |
| Linux | linux |
| 免費的BSD | freeBSD |
| 其他 | other |
| 卡洛斯·亞伯拉罕(Carlos Abraham) |
麻省理工學院許可©Carlos Abraham