Skip to content
/ os.c Public

Small C library to know your operating system.

License

Notifications You must be signed in to change notification settings

abranhe/os.c

Repository files navigation




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