Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Feb 2001 21:22:03 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Bruce Evans <bde@zeta.org.au>, Mark Murray <mark@grondar.za>, Mike Heffner <mikeh@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/lam lam.c 
Message-ID:  <200102090422.f194M3955775@harmony.village.org>
In-Reply-To: Your message of "09 Feb 2001 03:55:09 %2B0100." <xzplmrgftv6.fsf@flood.ping.uio.no> 
References:  <xzplmrgftv6.fsf@flood.ping.uio.no>  <Pine.BSF.4.21.0102090302160.7748-100000@besplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <xzplmrgftv6.fsf@flood.ping.uio.no> Dag-Erling Smorgrav writes:
: ...which is totally academic, since as you very well know, arrays
: decay to pointers when passed as arguments in function calls, and
: foo[] decays to *foo in function declarations and definitions. No
: ISO-compliant compiler will differentiate between the two. I use
: *argv[] myself, but only out of a sense of tradition.

Some compilers will warn of a pedantic mismatch.  But I don't think
gcc is one of them.  Besides style(9) is explicit on this.  If it
wasn't, then we could use **argv.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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