On Fri, Jul 16, 1999 at 02:19:59PM +0100, Ian Lynagh wrote:
> In article <[🔎] 19990715025911.I19631@ipe.uni-stuttgart.de>, Nils Rennebarth
> <nils@ipe.uni-stuttgart.de> writes
> > if (i < 0) {
> > syslog(LOG_ERR, "vacation: fork: %s", strerror(errno));
> > exit(1);
> > }
> > if (i == 0) {
> [...]
> > }
>
> Why isn't the second if an elseif? Wouldn't that be more efficient?
No. (Note that the program exits in the first "if". You can argue
readability, but that's IMHO a matter of personal taste.)
Mike Stone
Attachment:
pgpS2qhB76vKp.pgp
Description: PGP signature