Where can I find my system for implementing standard C library functions?

for example, strrev () function. I know that it is declared in string.h, and I want to find out how it is implemented. so where can i fix the source code?

OS: Windows XP SP3
IDE: Pelles C 6.50 RC3

+3
source share
2 answers

If you just want to see the source in the implementation of the standard C library (albeit widely used), the source for glibc is available. You can clone the git repository:

git clone git://sourceware.org/git/glibc.git

You can also examine the source in the browser. Here, for example, is a library string .

glibc does not include strrev(). However if you google for

strrev c

. : http://www.cas.mcmaster.ca/~kahl/SE2S03/2006/C/strrev.c ftp://ftp.ecs.vuw.ac.nz/pub/libs/libstrings/strrev.c.

+5

, . .

+1

Source: https://habr.com/ru/post/1782539/


All Articles