Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decvax.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!decvax!minow From: minow@decvax.UUCP (Martin Minow) Newsgroups: net.lang.c Subject: NULL Message-ID: <117@decvax.UUCP> Date: Sun, 22-Sep-85 22:31:07 EDT Article-I.D.: decvax.117 Posted: Sun Sep 22 22:31:07 1985 Date-Received: Tue, 24-Sep-85 03:21:06 EDT Reply-To: minow@decvax.UUCP (Martin minow) Organization: DEC - ULTRIX Engineering Group Lines: 16 NULL is a value defined by #includewhich is used by the standard I/O package to return error values. It has no other function (if you intend your programs to be portable). Several other library routines, such as malloc() "return a null pointer (0)" to signal errors. (See malloc (3) in the 4.1 bsd handbook.) If you want your programs to be portable, you should create suitably type-casted null pointers as needed: #define NULLST ((char *) 0) #define NULL_FOO ((FOO *) 0) Martin Minow decvax!minow