Question on getopt()

Guy Riddle ggr at packard.UUCP
Tue Jul 22 07:06:13 AEST 1986


) Anybody know an easy way to intercept, suppress or otherwise get rid of the
) error message that getopt() issues when user supplies an illegal flag?
) It seems uncharacteristically presumptuous -- I'll write my own "Usage:"
) messages myself, thanks.

Yes, use

	extern int	opterr;

	opterr = 0;

		=== Guy Riddle == AT&T Bell Laboratories Liberty Corner ===



More information about the Comp.lang.c mailing list