Os2020 provides two standard libraries, libc and libk. All files are located in src/lib.
To include libk files use k/*.c, libk provides system related functions like syscalls, system structures and also data structures.
libc is the traditionnal C standard library, not every function is implemented, see implemented functions above.
In addition, there is some definitions / structs like NULL, stdint.h and stdarg.h are also implemented.
- memcpy
- memmove
- memset
- strcat
- strdup
- strcmp
- strcpy
- strlen
- strncpy
- strtok
- free
- malloc
- fclose
- fgetc
- fgets
- fopen
- fprintf
- fputc
- fputs
- fread
- fwrite
- gets
- getchar
- putc
- putchar
- puts
- printf (partially, see implemented flags in stdio.h)
- vfprintf
- isalnum
- isalpha
- isblank
- iscntrl
- isdigit
- isgraph
- islower
- isprint
- ispunct
- isspace
- isupper
- isxdigit
- tolower
- toupper