(Long Options): getopt_long in getopt.h

This commit is contained in:
Roland McGrath 1996-05-21 21:35:56 +00:00
parent ee263689e0
commit 1b82a4a8ca

View File

@ -316,7 +316,8 @@ Non-option argument -
@subsection Parsing Long Options
To accept GNU-style long options as well as single-character options,
use @code{getopt_long} instead of @code{getopt}. You should make every
use @code{getopt_long} instead of @code{getopt}. This function is
declared in @file{getopt.h}, not @file{unistd.h}. You should make every
program accept long options if it uses any options, for this takes
little extra work and helps beginners remember how to use the program.