7.1.3 violation?

Joseph S. Myers jsm28@cam.ac.uk
Wed Sep 12 10:02:00 GMT 2001


On Wed, 12 Sep 2001, Michael Price wrote:

> 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().

Wrong.

         -- 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.154)

This reservation does not depend on any standard headers being included.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc mailing list