🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4161

Re: printf, va_end, freestanding implementation

#4161
From: Clive D.W. Feather
Date: Tue, 03 Oct 1995 05:06
20 lines
1386 bytes
In article <44nt1v$6mh@ae-sun01.alden.com>,
Stan Ryckman <sgr@ae-sun01.alden.com> wrote:
>> Yes. It's not a question of difficulty, but principle.
> OK, I'm a fish.  I'll take the bait.  What principle?

The principle is that a freestanding implementation need onlu provide
the facilities in certain headers (such as <float.h>). Anything else is
a bonus.

> (I'm not trying to be obtuse here; the 3 freestanding implementations
> I have used -- two were pre-standard-C, BTW -- all provided a sprintf
> that worked just fine, along with a printf which would send one's code
> into hyperspace.

This is, of course, permissible. It just isn't required.

-- 
Clive D.W. Feather                       | If you lie to the compiler,
clive@demon.net        (work, preferred) | it will get its revenge.
clive@stdc.demon.co.uk (home)            |   - Henry Spencer
Technical Details
Message-ID: <DFuwuF.5yM@stdc.demon.co.uk>
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive
References: <44ffgj$90k@fg70.rz.uni-karlsruhe.de> <44m623$5hl@ae-sun01.alden.com> <DFs6G0.FF@stdc.demon.co.uk> <44nt1v$6mh@ae-sun01.alden.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!stdc.demon.co.uk!clive
From: clive@stdc.demon.co.uk (Clive D.W. Feather)
Newsgroups: comp.std.c
Subject: Re: printf, va_end, freestanding implementation
Date: Tue, 3 Oct 1995 05:06:13 GMT
Organization: Demon Internet Limited (personal account)
Message-ID: <DFuwuF.5yM@stdc.demon.co.uk>
References: <44ffgj$90k@fg70.rz.uni-karlsruhe.de> <44m623$5hl@ae-sun01.alden.com> <DFs6G0.FF@stdc.demon.co.uk> <44nt1v$6mh@ae-sun01.alden.com>
Reply-To: clive@demon.net
X-NNTP-Posting-Host: stdc.demon.co.uk