Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!rutgers!husc6!spdcc!m2c!necntc!cullvax!drw From: drw@cullvax.UUCP (Dale Worley) Newsgroups: comp.lang.c Subject: Passing NULLs to printf Message-ID: <1407@cullvax.UUCP> Date: Wed, 29-Jul-87 11:16:48 EDT Article-I.D.: cullvax.1407 Posted: Wed Jul 29 11:16:48 1987 Date-Received: Fri, 31-Jul-87 04:47:11 EDT Organization: Cullinet Software, Westwood, MA, USA Lines: 13 But, suppose we write: printf("%.0s", (char *)NULL) This should print zero characters out of the string, and so won't actually reference any character through the null pointer. Presumably this is valid ANSI C! Dale -- Dale Worley Cullinet Software ARPA: cullvax!drw@eddie.mit.edu UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw From the Temple of St. Cathode of Vidicon: