Lipika Deka
Lipika Deka

Reputation: 3884

Adding new function to libc

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

Answers (1)

R.. GitHub STOP HELPING ICE
R.. GitHub STOP HELPING ICE

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

Related Questions