Reputation: 3884
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.
Upvotes: 0
Views: 644
Reputation: 215457
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).
Upvotes: 9