Article View: comp.sys.amiga.tech
Article #54Re: strins()
From: Peter da Silva
Date: Thu, 15 Jun 1989 11:35
Date: Thu, 15 Jun 1989 11:35
22 lines
1223 bytes
1223 bytes
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`
Technical Details
Message-ID:
<3930@sugar.hackercorp.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!texsun!texbell!uhnix1!sugar!peterReferences:
<8906150029.AA22430@jade.berkeley.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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