This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 7.1.3 violation?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]