Files
kolibrios/programs/develop/ktcc/trunk/libc.obj/samples/system_test.c
Egor00f 2a5f192267
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 1m33s
Build system / Build (pull_request) Successful in 10m23s
libc.obj: fix strtok && update change path to exit code
2026-02-20 18:16:15 +05:00

15 lines
257 B
C

#include <stdlib.h>
#include <stdio.h>
#include <sys/ksys.h>
#define EXIT_CODE_FORMAT "Exit Code: %d\n"
int main()
{
printf(EXIT_CODE_FORMAT, system("ls ."));
_ksys_delay(500);
printf(EXIT_CODE_FORMAT, system("/sys/sysmon"));
return 0;
}