[snip] In a similar way, on IRIX, there should be a call to: extern void getoptreset (void); to reset getopt according to the manual page at least :-). Kevin -- | Kevin Wheatley | These are the opinions of | | Senior Do-er of Technical Things | nobody and are not shared | | Cinesite (Europe) Ltd | by my employers |