🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #3227

Re: Debate: PowerMac "trounces" Pentium....???

#3227
From: Christopher C. Wood
Date: Wed, 14 Feb 1996 22:20
24 lines
1627 bytes
In article <stephenkDMqrH6.Bo5@netcom.com>, stephenk@netcom.com (Stephen Knilans) writes:

|> >What is the non-trivial method to convert an integer into an ASCII
|> >representation of its value?  All I need is code that will run on
|> >Solaris (2.3) and HPUX 9. 

|> You ask for it, you got it!

This code prints a string to stdout.  I wanted to convert the integer
to a string to pass on to a different function.  One would think the
"standard" atoi() would work.  It's even mentioned in Stroustrup's
"The C++ Programming Language" 2nd Edition, page 158.  

But if you're running two very popular (possibly the two most popular)
unix implementations, you have to do this differently; lltostr() on
Solaris 2.3 (by the way, the man page for this function, as
distributed by Sun, is wrong.), and ltoa() on HP.

Unix has so many standards, you almost always pick the wrong one.

Chris
-- 
Speaking only for myself, of course.
Chris Wood    christw@lexis-nexis.com   ChrisCWood@eworld.com
Technical Details
Message-ID: <4ftn81$5sv@meaddata.lexis-nexis.com>
Path: arc1-ca.pugleaf.net!newsfeeds.ans.net!lexis-nexis!meaddata!christw
References: <nevin-1202960529130001@150.135.1.79> <9602121654.AA02634@ues5.cern.ch> <4fqdta$rhh@meaddata.lexis-nexis.com> <stephenkDMqrH6.Bo5@netcom.com>

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: 14 Feb 1996 22:20:49 GMT
Organization: LEXIS-NEXIS, Dayton OH
Message-ID: <4ftn81$5sv@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>
NNTP-Posting-Host: dolphin.lexis-nexis.com