Re: getopt function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dima Sorkin wrote :
1) A question on libc function:
int getopt(int argc, char * const argv[],
                 const char *optstring);
The fact that it declares "char * const argv[]" and not
"const char * const argv[]" means that it changes argv ?

http://www.gnu.org/software/libc/manual/html_node/Getopt.html#Getopt

2) Is libc containing POSIX functions shipped
with gcc,

No

or it is a completely different project ?

Yes and No... The GNU C library is working only with Linux.  Not ported for
Solaris2, AIX, HP-UX, SVR4,... Most platforms provide their own C libraries
and these are proprietary or custom (sources maybe available) ones.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux