Hi, if I want to read the string functions source code (i.e. strcpy,
strtok etc.) where
can I find them?
There isn't a single set - implementers can implement them as they
like.
Some implementations are proprietary and you won't be able to examine
them.
Others are fall into various categories of "open source", "public
domain" etc...
You can find some pointers in this thread:-
<http://groups.google.c o.uk/group/comp.lang.c/browse_frm/thread/547c1ec43067a4a 3/b2358df269361d8 9#b2358df269361 d89>
You could also use Google's code search facilities, like this:-
<http://www.google.com/codesearch?q=fi le%3Astrtok.c&b tnG=Search+Code >
Hi, if I want to read the string functions source code (i.e. strcpy,
strtok etc.) where
can I find them?
>
oh sorry I wanted glibc linux implementation
Why don't you Google for it? Anyway, here's the link:
<http://www.gnu.org/software/libc/>
Take note though that GNU libc sources are not the easiest to
comprehend. You could also have a look at others like OpenBSD libc,
FreeBSD libc, dietlibc etc. Again use Google to locate them.
Comment