TC++: "floating point formats not linked"

Henry Spencer henry at zoo.toronto.edu
Sat Mar 9 02:45:41 AEST 1991


In article <279 at nazgul.UUCP> bright at nazgul.UUCP (Walter Bright) writes:
>/You could of course also have the compiler pay special attention to the
>/format strings for *scanf() and *printf(), although that is not foolproof.
>
>2. The library is supposed to be independent of the compiler...

Nope; they are both part of the "implementation", and may well be heavily
interdependent.  Notably, it's very difficult to avoid interdependencies
in longjmp().

>   ... could make it very problematical if
>   somebody rolled their own printf/scanf.

There is no portable way to do this anyway; ANSI C reserves all the
standard-library identifiers and forbids redefinition.
-- 
"But this *is* the simplified version   | Henry Spencer @ U of Toronto Zoology
for the general public."     -S. Harris |  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.lang.c mailing list