Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Efficient STRing CoMPares? Message-ID: <1991Mar21.220534.15906@zoo.toronto.edu> Date: Thu, 21 Mar 1991 22:05:34 GMT References: <1991Mar15.142821@mars.mpr.ca> <15486@smoke.brl.mil> <1193@caslon.cs.arizona.edu> Organization: U of Toronto Zoology In article marc@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@zoo.toronto.edu utzoo!henry