int main (int argc, char *argv[]) { .... } |
argc is the number of command-line arguments with which the program is invoked with. After any shell expansion, argc is always equal to at least 1, the name of the program.
argv is an array of pointers to the command-line arguments.
An interactive device is one for which the system library call isatty() returns a nonzero value.