🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.powerpc
Article #3269

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

#3269
From: Jim Trigg
Date: Mon, 26 Feb 1996 15:04
45 lines
3010 bytes
In article <4gl74s$sga@meaddata.lexis-nexis.com> christw@meaddata.com
(Christopher C. Wood) writes:

> In article <9lspg3xn54.fsf@marks.jyacc.com>, jtrigg@marks.jyacc.com
> (Jim Trigg) writes:
> |> In article <4g2i5q$dj7@meaddata.lexis-nexis.com> christw@meaddata.com
> |> (Christopher C. Wood) writes:

> |> > Look, I've shown a bunch of things with this thread.  _none_ of the
> |> > respondants pointed out that there is a "standard" library call to do
> |> > this: itoa().  As documented in K&R (I'd cite page numbers, but I
> |> > don't have it at this desk.)  As _assumed_ in Stroustrup, 2nd ed.
> |> > Guess what?  This "standard" library call, in actual practice, isn't
> |> > standard.  Each platform has its own version.  One version is even
> |> > wrong in the manufacturers on-line documentation.  Is this a fault
> |> > with the "Standard" for C or C++ libraries?  Or just the
> |> > implementations.  You tell me.

> |> The "documentation" in K&R is on page 64 (2nd ed.), where they show
> |> how to write it.  They never claim it is part of any library.  The
> |> code that they provide is system-independent.  (It does depend on one
> |> function that they wrote earlier in the book, reverse() which reverses
> |> a string in place.)  It is not even library-dependent.

> Right.

> |> Also, in regard to your claim that linking in sprintf links in the
> |> full stdio library, well, atoi (and relatives) links in the full
> |> stdlib library.  Unless, of course, you have an intelligent linker
> |> which only brings in symbols that are actually referenced.

> stdlib is almost always needed, for geteuid(), exit(), getenv(), and
> getopt().  Most unix programs use accept command line arguments or
> environment variables, and really ought to use standardized functions
> to access them.

First, geteuid() and getenv() are not part of stdlib (according to
ANSI/ISO).  They may be part of POSIX, I'm not sure.

Second, stdio is almost always needed as well.  A program which does no 
input and no output is practically useless.  Note that stdio handles ALL
i/o requests including both console (stdin/stdout) and file i/o.

Just a Thought,
Jim Trigg
Technical Details
Message-ID: <9lg2byw2jt.fsf@marks.jyacc.com>
Path: arc1-ca.pugleaf.net!in2.uu.net!jyacc!usenet
References: <4fqdta$rhh@meaddata.lexis-nexis.com> <danpop.824303108@rscernix> <4fvmmm$o5j@meaddata.lexis-nexis.com> <stephenkDMuGux.Iot@netcom.com> <4g2i5q$dj7@meaddata.lexis-nexis.com> <9lspg3xn54.fsf@marks.jyacc.com> <4gl74s$sga@meaddata.lexis-nexis.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel
Path: arc1-ca.pugleaf.net!in2.uu.net!jyacc!usenet
From: jtrigg@marks.jyacc.com (Jim Trigg)
Subject: Re: Debate: PowerMac "trounces" Pentium....???
In-Reply-To: christw@meaddata.com's message of 23 Feb 1996 20:13:16 GMT
X-Nntp-Posting-Host: marks
Message-ID: <9lg2byw2jt.fsf@marks.jyacc.com>
Sender: jtrigg@marks.jyacc.com
Organization: JYACC, Inc. 
X-Newsreader: Gnus v5.1
References: <4fqdta$rhh@meaddata.lexis-nexis.com> <danpop.824303108@rscernix>
 <4fvmmm$o5j@meaddata.lexis-nexis.com> <stephenkDMuGux.Iot@netcom.com>
 <4g2i5q$dj7@meaddata.lexis-nexis.com> <9lspg3xn54.fsf@marks.jyacc.com>
 <4gl74s$sga@meaddata.lexis-nexis.com>
Date: Mon, 26 Feb 1996 15:04:54 GMT