Article View: comp.sys.amiga.tech
Article #36Re: strins()
From: Doug Merritt
Date: Tue, 13 Jun 1989 15:29
Date: Tue, 13 Jun 1989 15:29
16 lines
1272 bytes
1272 bytes
In article <10285@watcgl.waterloo.edu> gswan@watcgl.waterloo.edu (Geo Swan) writes:
>I have seen lots of code that builds strings, particularly pathnames
>through the use of several calls to strcat. I have never been able
>to understand why people didn't use sprintf. Particularly in the
>case of building pathnames.
One perfectly valid reason is that sprintf() is much higher overhead
than simpler routines. It runs slower and takes up a fair amount of space.
I dunno about Manx and Lattice on the Amiga, but on many systems, the
existence of %f/%e/%g in {s,f,}printf means that a lot of unneeded floating
point code overhead will get thrown in.
Doug
--
Doug Merritt {pyramid,apple}!xdos!doug
Member, Crusaders for a Better Tomorrow Professional Wildeyed Visionary
Technical Details
Message-ID:
<384@xdos.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!motcsd!xdos!dougReferences:
<0929.AA0929@caleb> <109394@sun.Eng.Sun.COM> <10285@watcgl.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!motcsd!xdos!doug From: doug@xdos.UUCP (Doug Merritt) Newsgroups: comp.sys.amiga.tech Subject: Re: strins() Keywords: Lattice C Manx Aztec C strins() sprintf Message-ID: <384@xdos.UUCP> Date: 13 Jun 89 15:29:07 GMT References: <0929.AA0929@caleb> <109394@sun.Eng.Sun.COM> <10285@watcgl.waterloo.edu> Reply-To: doug@xdos.UUCP (Doug Merritt) Organization: Hunter Systems, Mountain View CA (Silicon Valley) Lines: 16