Article View: comp.std.c
Article #4158Re: printf, va_end, freestanding implementation
From: Thad Smith
Date: Mon, 02 Oct 1995 16:45
Date: Mon, 02 Oct 1995 16:45
19 lines
1392 bytes
1392 bytes
In article <DFs6G0.FF@stdc.demon.co.uk>, clive@stdc.demon.co.uk (Clive D.W. Feather) wrote: >>> The symbol printf will always be reserved, but there is no guarantee that >>> the function will be available to the programmer in a freestanding >>> implementation. >> Is the same true of sprintf? I can see why printf might cause >> difficulty in a freestanding environment, but not sprintf. > >Yes. It's not a question of difficulty, but principle. In practice, implementations designed for embedded use (not hosted) incorporate most of the non-locale-extended library anyway, including sprintf. In fact, most provide stdin and stdout I/O routines, simply letting the user supply getchar() and putchar(), or something equivalent. An implementation that did not provide at least the old non-wchar functions in <string.h> would be considered inferior, even though it could claim ISO C freestanding compliance. Thad
Technical Details
Message-ID:
<L7/bwQ9ytthG084yn@csn.net>Path:
arc1-ca.pugleaf.net!teal.csn.net!not-for-mailReferences:
<44ffgj$90k@fg70.rz.uni-karlsruhe.de> <DFnL25.5Ew@stdc.demon.co.uk> <44m623$5hl@ae-sun01.alden.com> <DFs6G0.FF@stdc.demon.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!teal.csn.net!not-for-mail From: thads@csn.net (Thad Smith) Newsgroups: comp.std.c Subject: Re: printf, va_end, freestanding implementation Date: 2 Oct 1995 10:45:57 -0600 Organization: T3 Systems Message-ID: <L7/bwQ9ytthG084yn@csn.net> References: <44ffgj$90k@fg70.rz.uni-karlsruhe.de> <DFnL25.5Ew@stdc.demon.co.uk> <44m623$5hl@ae-sun01.alden.com> <DFs6G0.FF@stdc.demon.co.uk> Reply-To: ThadSmith@acm.org NNTP-Posting-Host: 199.117.27.22