int argc the number of command line arguments.
char * argv[] or char ** argc the array of argument strings.
char * envp[] or char ** envp the array of environment variables.
ls -i /bin/*++
envp should be null terminated.
touch a)
bash)
export LC_COLLATE=C
ls
export LC_COLLATE=en_US.UTF-8
ls
exit)
-G phrase will print the phrase.
--greeting phrase will print the phrase
--help or -h will print a help message.
string greeting{"Hello World"}
string ending{"!"}
int i{1};
while (i < argc) {
}
strcmp
man strcmp
int strcmp(const char *s1, const char *s2);
if (!strcmp(argv[i], "-G") or !strcmp(argv[i], "--greeting")) {
}
else if (!strcmp...)