An interesting behaviour in printf

Jym Dyer jym at wheaties.ai.mit.edu
Wed Mar 22 07:15:01 AEST 1989


DEC's VAX C compiler (for VMS) crashes if you pass it a NULL for a string:

	printf("%s\n",NULL);

Alas, it also crashes on this:

	printf("%.*s\n",0,NULL);

Caveat emptor.
 <_Jym_>



More information about the Comp.lang.c mailing list