🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #3234

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

#3234
From: Christian Toelle
Date: Fri, 16 Feb 1996 11:11
28 lines
1785 bytes
christw@meaddata.com (Christopher C. Wood) wrote:

>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

Sorry, but atoi () converts a string to an int.
Technical Details
Message-ID: <4g1om1$s22@apans1.apa.at>
Path: arc1-ca.pugleaf.net!apans1.apa.at!news-admin@apanet.at
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>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!apans1.apa.at!news-admin@apanet.at
From: toelle@apanet.apa.co.at (Christian Toelle)
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: Fri, 16 Feb 1996 11:11:34 GMT
Organization: APAnet
Message-ID: <4g1om1$s22@apans1.apa.at>
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>
NNTP-Posting-Host: pctog3.apa.co.at
X-Newsreader: Forte Free Agent 1.0.82