Beware the implicit function declaration!

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Nov 20 11:54:47 AEST 1988


In article <4264 at bnrmtv.UUCP> rapin at bnrmtv.UUCP (Eric Rapin) writes:
>... Maybe a good suggestion to the ANSI "C" committee would be to
>allow the programmer to turn off the default int declaration of
>functions to force you to always declare them explicitly.

I'm posting my response (which should not be taken as an official
X3J11 position) because it may be of general interest:

X3J11 (the ANSI C committee) didn't want to try to dictate any
details of how C compilers are invoked, and they didn't want to
specify any form of multiple "levels" of the standard.  Vendors
will in many cases provide a variety of options, but only the
standard-conforming mode of operation will be covered by the
ANSI/ISO C standard specification.  You can try to convince your
compiler vendor that the option you suggest is a good idea..



More information about the Comp.lang.c mailing list