Article View: comp.std.c
Article #2821Re: ANSI C standard library
From: Walter Bright
Date: Fri, 26 Apr 1991 21:31
Date: Fri, 26 Apr 1991 21:31
27 lines
1600 bytes
1600 bytes
In article <681@taumet.com> steve@taumet.com (Stephen Clamage) writes: /In the full posting you mentioned only setjmp and longjmp as /functions which cannot be written in strictly-conforming C, and /memmove which cannot be written efficiently in strictly-conforming C. /Can you name any other functions in the standard C library which /cannot reasonably be written in strictly-conforming C. Off the top of my head: 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.
Technical Details
Message-ID:
<307@nazgul.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!pilchuck!dataio!fnx!nazgul!brightReferences:
<1991Apr11.185038.108@cpqhou.uucp> <1991Apr15.194430.18673@webo.dg.com> <677@taumet.com> <1991Apr20.092845.14164@watdragon.waterloo.edu> <681@taumet.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.std.c Subject: Re: ANSI C standard library Message-ID: <307@nazgul.UUCP> Date: 26 Apr 91 21:31:19 GMT References: <1991Apr11.185038.108@cpqhou.uucp> <1991Apr15.194430.18673@webo.dg.com> <677@taumet.com> <1991Apr20.092845.14164@watdragon.waterloo.edu> <681@taumet.com> Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 27