getopt (3) problem?
Paul T. Root
proot at ksuvax1.cis.ksu.edu
Wed Sep 12 11:11:52 AEST 1990
In compiling and running some things, I have found that getopt doesn't act
right. When it runs out of parameters instead of returning an EOF it returns
a -1.
I have called my Rep and he said he'd pass it along.
I've used getopt quite a bit on Suns, Vax, PS/2's, 370's, so I don't think
its operator error.
The work around I use is like this:
while(( c = getopt( argc, argv, "d:m" )), c != EOF && c != -1 ) {
switch( c ) {
.
.
.
}
}
Keeping the world informed...
Paul.
More information about the Comp.unix.aix
mailing list