Eric schrieb:
For this code,
int getopt (int argc, char *const argv[], const char *opts)
what does the "char *const argv[]" mean? Does it equal to "char **const
argv"?
Or "char *const *argv"? Which is the const?
char * const * argv.
I suggest that you get yourself a little programme called cdecl:
,---
$ cdecl
Type `help' or `?' for help
cdecl> explain char *const argv[]
declare argv as array of const pointer to char
cdecl> explain char *const *argv
declare argv as pointer to const pointer to char
`---
which of course is equivalent for function parameters
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.