Skip to content

Latest commit

 

History

History
92 lines (71 loc) · 2.48 KB

readme.md

File metadata and controls

92 lines (71 loc) · 2.48 KB




os.c: Small C library to know your operating system.



Installation

Installing using Clib

$ clib install abranhe/os.c

Usage

#include <stdio.h>
#include "os.h"

int main()
{
	printf("%s\n", operating_system());
	// macOS
	return 0;
}

API

char *operating_system(void);

Return the operating system you are using.

Params:
  • void: It takes no parameters
Available operating systems
Operating System operating_system()
macOS macOS
Window 32 win32
Window 64 win64
Unix unix
Linux linux
Free BSD freeBSD
Other other

Related

  • os: cli tool for this library.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham