From 2d7e3a8cfc9aae88a8a692907e79cf0f9e3d7650 Mon Sep 17 00:00:00 2001 From: Rabia Alhaffar Date: Thu, 11 Jun 2020 22:58:06 +0300 Subject: [PATCH] Added GetOS example --- examples/core/core_get_os.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/core/core_get_os.c 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