简体   繁体   中英

Where can I get the source code of string.h; not function prototypes, but implementation of functions

String.h

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.

这是来自Ohloh代码搜索的memmove

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM