S
Spartan815
Can anyone point me to a resource that explains the getopt function
besides the man pages? Im having a bit of trouble understanding it.
Currently I am trying to work it into my program, so that from the
command line you could type something like
a.out -d /tmp
where /tmp is the directory you want to switch to, and -d is the
optional argument.
Thanks!
besides the man pages? Im having a bit of trouble understanding it.
Currently I am trying to work it into my program, so that from the
command line you could type something like
a.out -d /tmp
where /tmp is the directory you want to switch to, and -d is the
optional argument.
Thanks!