Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@zoo.toronto.edu (Henry Spencer)
Subject: Re: TC++: "floating point formats not linked"
Message-ID: <1991Mar8.164541.11399@zoo.toronto.edu>
Date: Fri, 8 Mar 1991 16:45:41 GMT
References: <1991Feb9.193059.14322@ucselx.sdsu.edu> <LT5NQEC@methan.chemie.fu-berlin.de> <268@nazgul.UUCP> <15316@smoke.brl.mil> <279@nazgul.UUCP>
Organization: U of Toronto Zoology

In article <279@nazgul.UUCP> bright@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@zoo.toronto.edu  utzoo!henry
