POSIX.2 has changed getopt to return -1 instead of EOF (to decouple getopt() from standard i/o). This change is more pedantic than functional as EOF is defined to be -1. Also, POSIX.2 says that geto
POSIX.2 has changed getopt to return -1 instead of EOF (to decouple getopt() from standard i/o). This change is more pedantic than functional as EOF is defined to be -1. Also, POSIX.2 says that getopt lives in unistd.h , not stdlib.h. From: "J.T. Conklin" <jtc@sun-lamp.cs.berkeley.edu>
show more ...
|