Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverkwebb/pdlibc
Public Domain Example libc
https://github.com/oliverkwebb/pdlibc
Last synced: 18 days ago
JSON representation
Public Domain Example libc
- Host: GitHub
- URL: https://github.com/oliverkwebb/pdlibc
- Owner: oliverkwebb
- License: 0bsd
- Created: 2024-08-12T07:55:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T03:23:52.000Z (about 2 months ago)
- Last Synced: 2024-10-13T14:16:53.273Z (about 1 month ago)
- Language: C
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pdlibc - A demonstration libc that aims to be C89 compatible
---pdlibc (Public Domain Libc) is a example implementation of the standard C library designed to be as simple as posible.
It currently provides most of the subset of functions from C89 and the linux kernels [nolibc](https://github.com/torvalds/linux/tree/master/tools/include/nolibc)
The functions that have had full tests for them (`make test`):
- abort()
- assert()
- atexit(), exit()
- atoi(), atol(), strtod()
- bsearch()
- calloc()
- cos()
- fabs()
- fopen()
- free()
- fwrite()
- getenv()
- atan() and atan2()
- setlocale(), localeconv()
- rand(), srand()
- IO buffering (setvbuf, fflush)
- labs(), abs()
- malloc()
- memcpy()
- memmove()
- memset()
- putchar()
- puts()
- qsort()
- raise()
- sin()
- Most of printf(), vfprintf(), vprintf(), and fprintf();
- sqrt()
- strcat()
- strchr(), memchr()
- strcmp(), strncmp()
- strcpy(), strncpy(), memcpy()
- strerror()
- strlen()
- The entirity of ctype.h
- The entirity of varargs.hSee:
https://port70.net/%7Ensz/c/c89/c89-draft.html#4.