🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #1774

Re: v01INF1: Status - Status of comp.sources.reviewed

#1774
From: Peter da Silva
Date: Mon, 22 Apr 1991 17:37
17 lines
1474 bytes
In article <MEISSNER.91Apr20151434@curley.osf.org> meissner@osf.org (Michael Meissner) writes:
> This can produce the wrong error message if sprintf sets errno (for
> example if it calls malloc and malloc fails).

I'm sure it can, but there are more systems where errno doesn't exist
and perror still works than where sprintf calls malloc. As you say, if
you can depend on ANSI C you can use strerror. If not, I'd rather stick
to the lowest common denominator.

In fact, I don't know of any implementations where sprintf can set errno.
Does *anyone* know of one?

(I once considered, on the Amiga, having perror pop up a requestor if
 the program was called from Workbench...)
-- 
Peter da Silva.  `-_-'  peter@ferranti.com
+1 713 274 5180.  'U`  "Have you hugged your wolf today?"
Technical Details
Message-ID: <6_WAABB@xds13.ferranti.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!uupsi!ficc!peter
References: <1991Apr16.131650.24389@scuzzy.in-berlin.de> <1307:Apr1702:20:0991@kramden.acf.nyu.edu> <FUSA56C@xds13.ferranti.com> <25835:Apr1908:41:2991@kramden.acf.nyu.edu> <B9UA6DD@xds13.ferranti.com> <MEISSNER.91Apr20151434@curley.osf.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!uupsi!ficc!peter
From: peter@ficc.ferranti.com (Peter da Silva)
Newsgroups: comp.sources.d
Subject: Re: v01INF1: Status - Status of comp.sources.reviewed
Message-ID: <6_WAABB@xds13.ferranti.com>
Date: 22 Apr 91 17:37:06 GMT
References: <1991Apr16.131650.24389@scuzzy.in-berlin.de> <1307:Apr1702:20:0991@kramden.acf.nyu.edu> <FUSA56C@xds13.ferranti.com> <25835:Apr1908:41:2991@kramden.acf.nyu.edu> <B9UA6DD@xds13.ferranti.com> <MEISSNER.91Apr20151434@curley.osf.org>
Reply-To: peter@ficc.ferranti.com (Peter da Silva)
Organization: Xenix Support, FICC
Lines: 17