Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!gatech!usenet.ins.cwru.edu!abvax!iccgcc!browns From: browns@iccgcc.decnet.ab.com (Stan Brown) Newsgroups: comp.lang.c Subject: Re: Efficient STRing CoMPares? Message-ID: <3940.27ede62a@iccgcc.decnet.ab.com> Date: 25 Mar 91 16:59:38 GMT References: <1991Mar15.142821@mars.mpr.ca> <15486@smoke.brl.mil> <1193@caslon.cs.arizona.edu> Lines: 16 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! 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@iccgcc.decnet.ab.com Stan Brown, Oak Road Systems, Cleveland, Ohio, USA +1 216 371 0043