Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!munnari.oz.au!csource!david From: david@csource.oz.au (david nugent) Newsgroups: comp.lang.c Subject: Very elementary question concerning indirection Message-ID: <49.25DAD22B@csource.oz.au> Date: 16 Feb 90 04:49:17 GMT Organization: Unique Computing Pty Limited (Vic) Lines: 25 > printf( "%c\n",*(strchr(string,40)) ); <---- line in question > > If the "line in question" is commented out, the program compiles with > one warning on line 7 (This is in Vax Ultrex C, no warning is given in > Turbo C). What is wrong with the "line in question". Also, what does this > warning mean? It means I _like_ that compiler! :-) Hmm, one clever enough to understand printf() style format strings is rather nice. It must know it's looking for a char there.. I'm not too surprised TC passes it with no comment. printf() is defined to have a variable number of arguments, and no type checking at all is in effect. david -- uucp: ...!munnari!csource!david internet: david@csource.oz.au Via FidoNet 3:632/348, Melbourne, Australia.