Index:
[thread]
[date]
[subject]
[author]
From: Garrett Mitchener <wgm2@duke.edu>
To :
Date: 04 Mar 1999 20:25:14 -0500
Re: getopt()
Michael Abernethy <mna@duke.edu> writes:
> I'm working on goof right now and have tried to implement the getopt()
> function.
> It works fine when I type: goof -r filename
> It works fine when I type: goof wordToFind
>
> It doesn't work when I type: goof wordToFind -r filename
>
> Has anyone run across this problem, and if you have, how did you manage
> to fix it?
> getopt() seems to work only when there's a -command as argv[1], and not at
> any other position
> Thanks alot,
>
> Mike Abernethy
> www.duke.edu/~mna
> IBM Club Cyberblue - www.cybrblu.ibm.com
When getopt gets to something it doesn't recognize as an option, it
stops...
-- Garrett :-)
Index:
[thread]
[date]
[subject]
[author]