Efficient STRing CoMPares?

Henry Spencer henry at zoo.toronto.edu
Fri Mar 22 08:05:34 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!

In ANSI C it is *not* legal for a program to redefine the standard
library functions (not as external identifiers anyway), so the inlining
is, subject to some care about fine points, legitimate.
-- 
"[Some people] positively *wish* to     | Henry Spencer @ U of Toronto Zoology
believe ill of the modern world."-R.Peto|  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.lang.c mailing list