Question
How can I add a new libc function and also call it from C programs? The new function is a not a wrapper to any kernel level system calls. Its function will be done in user space.
Solution
Put it in its own library file and link it with -llibrary_name_here
. The only things that belong in libc are already there (along with plenty of things that don't belong there).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow