7

Cannot find puts() in glibc source code

view full story
linux-howto

http://stackoverflow.com – I'm very new to Linux/C. In the glibc(eglibs-2.15) sources on my Linux I can only find puts() declaration in /libio/stdio.h extern int puts (__const char *__s); but cannot find sources for puts() anywhere in glibc sources. My guess is that puts() is system dependent and its sources are somewhere else. Question: where can I find puts() sources? Also, it looks like on some systems sources for puts() are available, for instance on Apple (http://www.opensource.apple.com/source/Libc/Libc-186/stdio.subproj/puts.c) or NetBSD (https://www-asim.lip6.fr/trac/netbsdtsar/browser/vendor/netbsd/5-2009 (HowTos)