int main (int argc, char *argv[]) { .... }
argc 是调用程序时所用的命令行参数的数量。在任何 shell 扩展之后,argc 总是至少等于 1,即程序名称。
argv 是指向命令行参数的指针数组。
交互式设备是系统库调用 isatty() 返回非零值的设备。