Added Execute function example
This commit is contained in:
parent
37ce63878e
commit
3835a82c42
16
examples/core/core_os_execute.c
Normal file
16
examples/core/core_os_execute.c
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Written by Rabia Alhaffar in 12/June/2020
|
||||||
|
|
||||||
|
#include <raylib.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
InitWindow(0,0,"Execute");
|
||||||
|
Execute("mkdir made_with_example");
|
||||||
|
while(!WindowShouldClose()) {
|
||||||
|
BeginDrawing();
|
||||||
|
ClearBackground(RAYWHITE);
|
||||||
|
DrawText("Command executed successfully!!!",10,10,32,BLACK);
|
||||||
|
EndDrawing();
|
||||||
|
}
|
||||||
|
CloseWindow();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user