Article View: comp.sys.powerpc
Article #3236Re: Debate: PowerMac "trounces" Pentium....???
From: Christopher C. Wood
Date: Fri, 16 Feb 1996 18:28
Date: Fri, 16 Feb 1996 18:28
26 lines
1758 bytes
1758 bytes
In article <danpop.824406631@rscernix>, danpop@mail.cern.ch (Dan Pop) writes: |> In <4ftn81$5sv@meaddata.lexis-nexis.com> christw@meaddata.com (Christopher C. Wood) writes: |> Only a fool could think something like this. atoi (which is a |> standard C function, no double quotes required) converts a string |> to an int, as its name says: Ascii-TO-Int. Got it? Yup. Guess what? On two of the most popular unix platforms, Solaris 2.3 and HPUX 9, the function is _not_ atoi(). That's why I asked. |> This is precisely why clever programmers choose the ANSI C solution |> whenever possible (sprintf in this case). sprintf() means linking in the whole stdio library; 50K for a 150-byte function. Can you say code bloat? |> BTW, neither lltostr nor ltoa are part of any Unix standard that I |> know of. If you use vendor-specific extensions, you get what you |> deserve. atoi() is implemented in _neither_ Solaris 2.3 nor HPUX 9. Chris -- Speaking only for myself, of course. Chris Wood christw@lexis-nexis.com ChrisCWood@eworld.com
Technical Details
Message-ID:
<4g2ibh$dj7@meaddata.lexis-nexis.com>Path:
arc1-ca.pugleaf.net!newsfeeds.ans.net!lexis-nexis!meaddata!christwReferences:
<nevin-1202960529130001@150.135.1.79> <9602121654.AA02634@ues5.cern.ch> <4fqdta$rhh@meaddata.lexis-nexis.com> <stephenkDMqrH6.Bo5@netcom.com> <4ftn81$5sv@meaddata.lexis-nexis.com> <danpop.824406631@rscernix>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsfeeds.ans.net!lexis-nexis!meaddata!christw From: christw@meaddata.com (Christopher C. Wood) Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel Subject: Re: Debate: PowerMac "trounces" Pentium....??? Date: 16 Feb 1996 18:28:01 GMT Organization: LEXIS-NEXIS, Dayton OH Message-ID: <4g2ibh$dj7@meaddata.lexis-nexis.com> References: <nevin-1202960529130001@150.135.1.79> <9602121654.AA02634@ues5.cern.ch> <4fqdta$rhh@meaddata.lexis-nexis.com> <stephenkDMqrH6.Bo5@netcom.com> <4ftn81$5sv@meaddata.lexis-nexis.com> <danpop.824406631@rscernix> NNTP-Posting-Host: dolphin.lexis-nexis.com