Article View: comp.sys.amiga.tech
Article #69Re: strins()
From: gay_d
Date: Fri, 16 Jun 1989 08:07
Date: Fri, 16 Jun 1989 08:07
32 lines
1706 bytes
1706 bytes
In article <17740@louie.udel.edu: new@udel.edu (Darren New) writes:
->In article <3930@sugar.hackercorp.com> peter@sugar.hackercorp.com (Peter da Si
lva) writes:
->>In article <8906150029.AA22430@jade.berkeley.edu>, C506634@UMCVMB.BITNET ("Er
ic Edwards") writes:
->>> Lattice uses a bultin function to get arround this problem in printf.
->>> " printf
->>> * When it is a constant string with no substitutions, the compiler changes
the
->>> printf call to a _write call.
I think it's called _writes
->>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)?
->
->[...] Redefining printf seems kind of dubious
->to me, knowing the little I do about ANSI. This is also used to inline
->strcpy, strcat, and a couple others (in 4.0).
From the little I know about ANSI, you can't portably redefine printf, as
other library routines may use it ... Also, I think that they suggest that
you inline strcat, et al (though not printf).
->>Can you freely interleave _write with stdio routines?
->Not standardly. I would think that you would change it to puts(), myself.
Seeing that it isn't _write, you can freely intermix _writes with stdio
routines! Also, don't forget that puts() adds a newline.
David Gay
GAY_D@ELMA.EPFL.CH <-- Note the change of address
Technical Details
Message-ID:
<890616090705.20e04ba4@SIC.Epfl.CH>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!elma.epfl.ch!gay_dShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!elma.epfl.ch!gay_d From: gay_d@elma.epfl.ch Newsgroups: comp.sys.amiga.tech Subject: Re: strins() Message-ID: <890616090705.20e04ba4@SIC.Epfl.CH> Date: 16 Jun 89 08:07:05 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 32