diff --git a/examples/core/core_get_os.c b/examples/core/core_get_os.c new file mode 100644 index 000000000..64fdde61b --- /dev/null +++ b/examples/core/core_get_os.c @@ -0,0 +1,17 @@ +// Written by Rabia Alhaffar in 11/June/2020 +// Example to check current operating system used + +#include + +int main(void) { + InitWindow(0,0,"Check OS"); + SetTargetFPS(60); + while (!WindowShouldClose()) { + BeginDrawing(); + ClearBackground(RAYWHITE); + DrawText(GetOS(),10,10,32,BLACK); + EndDrawing(); + } + CloseWindow(); + return 0; +} \ No newline at end of file