Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!texsun!texbell!uhnix1!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: strins() Message-ID: <3930@sugar.hackercorp.com> Date: 15 Jun 89 11:35:02 GMT References: <8906150029.AA22430@jade.berkeley.edu> Organization: Sugar Land Unix - Houston Lines: 22 In article <8906150029.AA22430@jade.berkeley.edu>, C506634@UMCVMB.BITNET ("Eric Edwards") writes: > Lattice uses a bultin function to get arround this problem in printf. What problem? > I quote from the Lattice manual, _Lattice C Compiler_ version 4.0 > " printf > * When it is a constant string with no substitutions, the compiler changes the > printf call to a _write call. What if you have your own version of printf? Say, one that understands more escape sequences (%e -- error text, %t -- absolute tab, %l -- length byte)? Can you freely interleave _write with stdio routines? Does it work if you have freopened stdout? This sounds like a pretty dubious optimisation. -- Peter "Have you hugged your wolf today" da Silva `-_-' ...texbell!sugar!peter, or peter@sugar.hackercorp.com 'U`