Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site dg_rtp.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!mcnc!rti-sel!dg_rtp!meissner From: meissner@dg_rtp.UUCP (Michael Meissner) Newsgroups: net.lang,net.lang.c Subject: Re: structured assembler (BASIC) [Really: C builtin functions?] Message-ID: <287@dg_rtp.UUCP> Date: Tue, 8-Apr-86 09:54:25 EST Article-I.D.: dg_rtp.287 Posted: Tue Apr 8 09:54:25 1986 Date-Received: Thu, 10-Apr-86 20:52:41 EST References: <443@3comvax.UUCP> <7900003@ztivax.UUCP> Reply-To: meissner@dg_rtp.UUCP (Michael Meissner) Distribution: net Organization: Data General (Languages @ Westborough, MA. soon: RTP, NC) Lines: 26 Keywords: BASIC, C, ANSI, X3J11 Xref: watmath net.lang:2329 net.lang.c:8478 In article <824@ttrdc.UUCP> levy@ttrdc.UUCP (Daniel R. Levy) writes: >In article <41@cbmvax.cbmvax.cbm.UUCP>, daveh@cbmvax.UUCP writes: >> >>C, LISP, Pascal, BASIC, etc., all have standard built-in functions. > >C has standard built-in functions???? > >Gee, that's a new one on me. EVERY function called from C is an external func- >tion, or at least it was when C began. This includes things like write(), >read(), printf(), math functions, etc. There's no such thing as, for example, >a C builtin equivalent to the FORTRAN MAX() or the Basic INPUT which does the >right thing no what the arguments' types are, or where the returned result is >stored. ... That may be the original practice, but the X3J11 (ANSI C) drafts, now quite clearly say that all functions defined in the library are reserved (ie, you can't redefine them), and may be builtin to the compiler. I believe that the /usr/group standard (and probably P1003) reserved every function from all major UNIX* variants. It may be that redefining these reserved library functions will continue to work in *YOUR* implementation, but it's not guaranteed. Michael Meissner, Data General ...{ decvax, ihnp4 }!mcnc!rti-sel!dg_rtp!meissner *UNIX is a trademark of AT&T in the U.S.A. and other countries.