Efficient STRing CoMPares?

Stan Brown browns at iccgcc.decnet.ab.com
Tue Mar 26 02:59:38 AEST 1991


In article <MARC.91Mar20080239 at marc.watson.ibm.com>, marc at arnor.UUCP (Marc Auslander) writes:
> A correct compiler cannot inline strcmp unless it is given
> extralingual permission to do so - for example in a pragma or by
> defining some reserved symbol or by some other means.  This is because
> it is legal to combine a program which uses strcmp with another which
> defines it to by anything at all!

Assuming that by 'correct compiler' you mean one that conforms to the 
ANSI standard, I have to disagree with your statement.

Sec 4.1.6 of the standard specifically allows compilers to inline
the standard library functions.

My opinions are mine:  I don't speak for any other person or company.
                   email (until 91/4/30): browns at iccgcc.decnet.ab.com
Stan Brown, Oak Road Systems, Cleveland, Ohio, USA    +1 216 371 0043



More information about the Comp.lang.c mailing list