This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 7.1.3 violation?
- To: Michael Price <mprice at atl dot lmco dot com>
- Subject: Re: 7.1.3 violation?
- From: Andreas Schwab <schwab at suse dot de>
- Date: 12 Sep 2001 19:06:57 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <20010912115423.A6741@atl.lmco.com>
Michael Price <mprice@atl.lmco.com> writes:
|> When reading the following transcript, keep in mind that <string.h> was
|> never included. ISO 9899:1999 section 7.1.3 states that the library functions
|> are only reserved if their associated headers are included and 7.1.4 doesn't
|> list an exception. I could find no exception for strlen().
Section 7.1.3 says:
All identifiers with external linkage in any of the following subclauses
(including the future library directions) are always reserved for use as
identifiers with external linkage.
Thus strlen is reserved even without including <string.h>.
Andreas.
--
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5