Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 1997 21:53:45 +0100 (MET)
From:      Guido van Rooij <guido@gvr.win.tue.nl>
To:        top@sonic.cris.net (Alexander V. Kalganov)
Cc:        audit-bin@freebsd.org, FreeBSD-hackers@freebsd.org (FreeBSD-hackers)
Subject:   Re: hmm
Message-ID:  <199702192053.VAA02956@gvr.win.tue.nl>
In-Reply-To: <199702191754.UAA03440@sonic.cris.net> from "Alexander V. Kalganov" at "Feb 19, 97 08:54:19 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Alexander V. Kalganov wrote:
> Hi
> Maybe this is a dumb question, but would someone explain me what the
> following is done for?
> 
> 	char *p;
> 
> 	if ((p = argv[0]) == NULL)
> 		errx(2,"test: argc is zero");
> 

It seems a bit strange to me. Just like the first part of the line
underneath btw:
	if (*p != '\0' && p[strlen(p) - 1] == '[') {
	    ^^^^^^^^^^

-Guido

Cc: freebsd-hackers@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702192053.VAA02956>