Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!bionet!apple!rutgers!uwvax!tank!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uicsrd.csrd.uiuc.edu!mcdaniel From: mcdaniel@uicsrd.csrd.uiuc.edu Newsgroups: comp.lang.c Subject: Re: variable number of strings passed t Message-ID: <44200019@uicsrd.csrd.uiuc.edu> Date: 4 Nov 88 06:37:00 GMT References: <434@tutor.UUCP> Lines: 27 Nf-ID: #R:tutor.UUCP:434:uicsrd.csrd.uiuc.edu:44200019:000:1041 Nf-From: uicsrd.csrd.uiuc.edu!mcdaniel Nov 4 00:37:00 1988 Written 11:08 am Oct 31, 1988 by crossgl@ingr.UUCP in comp.lang.c: > Wouldn't it be much nicer to be able to call the function with the > single line > yourfunction ("arg1", "arg2", ... , 0); > Gordon Cross > Intergraph Corp. Huntsville, AL Yes, it would be nice if you could do that. However, the line as given above is erroneous (although likely to work in many implementations). Either yourfunction ("arg1", "arg2", ... , (char *) 0); or yourfunction ("arg1", "arg2", ... , (char *) NULL); works. If you don't believe me, I'll e-mail you a copy of Chris Torek's articles "Why NULL is 0" and "Re: NULL etc.", the definitive works on the subject. -- Tim, the Bizarre and Oddly-Dressed Enchanter Center for Supercomputing Research and Development at the University of Illinoid at Urbana-Champaign Internet, BITNET: mcdaniel@uicsrd.csrd.uiuc.edu UUCP: {uunet,convex,pur-ee}!uiucuxc!uicsrd!mcdaniel ARPANET: mcdaniel%uicsrd@uxc.cso.uiuc.edu CSNET: mcdaniel%uicsrd@uiuc.csnet DECnet?: GARCON::"mcdaniel@uicsrd.csrd.uiuc.edu"