🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #3259

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

#3259
From: Nevin ":-]" Liber
Date: Thu, 15 Feb 1996 07:48
27 lines
1946 bytes
In article <danpop.824303108@rscernix>, danpop@mail.cern.ch (Dan Pop) wrote:

> In <4fqdta$rhh@meaddata.lexis-nexis.com> christw@meaddata.com
(Christopher C. Wood) writes:

> >In article <9602121654.AA02634@ues5.cern.ch>, Dan Pop <Dan.Pop@cern.ch>
writes:
> >
> >|> It's damn easy to write non-trivial portable ANSI C.  All you have to do
> >|> is not to rely on platform-specific features (size of certain types,
> >|> byte sex, etc) and functions.  

> >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. 

> Why do you want to do it in a non-trivial way?  What's wrong with the
> trivial method: sprintf(buff, "%d", intval)?

It's not portable yet.  What is the minimum size that the buffer that buff
points to should be in order to store an int for any possible (not
necessarily just existing today, but anything that conforms to the current
standard) ANSI C implementation?

Like I said, this stuff isn't that easy to get right and 100% portable.
-- 
        Nevin ":-)" Liber       nevin@CS.Arizona.EDU    (520) 293-2799
Technical Details
Message-ID: <nevin-1502960049080001@150.135.1.79>
Path: arc1-ca.pugleaf.net!CS.Arizona.EDU!NewsWatcher!user
References: <nevin-0602962253080001@150.135.1.79> <4fdi45$gu7@eken.hv.se> <4fea7g$eio@nyx.cs.du.edu> <9602092127.AA24456@ues5.cern.ch> <nevin-1202960529130001@150.135.1.79> <9602121654.AA02634@ues5.cern.ch> <4fqdta$rhh@meaddata.lexis-nexis.com> <danpop.824303108@rscernix>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!CS.Arizona.EDU!NewsWatcher!user
From: nevin@CS.Arizona.EDU (Nevin ":-]" Liber)
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: Thu, 15 Feb 1996 00:48:28 -0700
Organization: University of Arizona CS Department, Tucson "It's too dang hot!" Arizona
Message-ID: <nevin-1502960049080001@150.135.1.79>
References: <nevin-0602962253080001@150.135.1.79> <4fdi45$gu7@eken.hv.se> <4fea7g$eio@nyx.cs.du.edu> <9602092127.AA24456@ues5.cern.ch> <nevin-1202960529130001@150.135.1.79> <9602121654.AA02634@ues5.cern.ch> <4fqdta$rhh@meaddata.lexis-nexis.com> <danpop.824303108@rscernix>
NNTP-Posting-Host: mac-nevin.cs.arizona.edu