/OSDetect

A tiny header file for detects the operating system in C based program.

Primary LanguageCGNU General Public License v3.0GPL-3.0

OS (Operation System) Detect

A tiny header file for detects the operating system in C based program.

Example

#include <stdio.h>

const char *OS();

int main() {
	printf("==>%s\n", OS());
	return 0;
}

Compile

gcc test.c source/osdetect.c -o test