Date: Fri, 17 May 1996 18:24:40 +0200 (SAT) From: Robert Nordier <rnordier@iafrica.com> To: j@uriah.heep.sax.de (J Wunsch) Cc: chat@freebsd.org Subject: Re: SYSV, *BSD, and getopt(3) Message-ID: <199605171624.SAA00529@eac.iafrica.com> In-Reply-To: <199605171419.QAA06574@uriah.heep.sax.de> from "J Wunsch" at May 17, 96 04:19:07 pm
next in thread | previous in thread | raw e-mail | index | archive | help
J Wunsch wrote: > [...] > > while ((c = getopt(argc, argv, "abc")) != -1) > > switch (c) { > > case 'a': > > /* ... */ > > break; > > default: > > err++; > > } > > if (err) > > usage(); > > Except that the variable is called ``errs'' :), this is exactly what > i'm doing in my code as well. Good to see that someone else is following the One True Way. 8) Regards Robert Nordier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605171624.SAA00529>