Where can I get the source code of string.h; not function prototypes, but implementation of functions
String.h
I found this while searchi开发者_如何学编程ng about string.h
. Where can I find the source code of functions defined in string.h
?
i.e [say] source code of
void *memcpy(void *, const void *, size_t);
Also I want to ask how to make your functions as an interface with its implmentation hidden from developer as string.h
functions has.
Here's memmove from Ohloh's code search.
Put your function declarations in a .h file and your implementation in a .c file. Compile the .c file into a .o file (.obj on Windows) and link it together with your code.
For the implementation of string.h functions, get the GNU libc source.
精彩评论