ANSI C standard library

Doug Gwyn gwyn at smoke.brl.mil
Wed May 1 02:48:48 AEST 1991


In article <307 at nazgul.UUCP> bright at nazgul.UUCP (Walter Bright) writes:
-In article <681 at taumet.com> steve at taumet.com (Stephen Clamage) writes:
-/Can you name any other functions in the standard C library which
-/cannot reasonably be written in strictly-conforming C.
-	malloc and friends, because implementation dependent details
-	about pointer alignment need to be known.
-	Any stdio functions, because they need to call operating system
-	functions which aren't part of ANSI C.
-	Any other functions which interface to the operating system,
-	like time().
-	Transcendental functions could be implemented, but would be
-	inaccurate and slow if the mechanics of the underlying
-	floating point were not taken advantage of.
-	The startup code.
-	The ctype.h functions, because they need to know if the
-	implementation is ascii or some other scheme.
-	The stdarg.h functionality.

With the possible exception of the startup code, all the above can
be reasonably written in strictly-conforming C in most environments.



More information about the Comp.std.c mailing list