When you write the main function you should code it in a way simular to this example.
int main(int argc, char *argv[])
{
}
|
This enables you to access any command line arguments passed to your program and the program name its self.
Example using argc and argv
Bob Stout's example.
getopt function.
| Top | Master Index | Keywords | Functions |