I found this while searching about string.h
. Where can I find the source code of functions defined in string.h
?
ie [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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.