Xref: news2.mv.net comp.os.msdos.djgpp:4283 From: Rikard Thunberg Newsgroups: comp.os.msdos.djgpp Subject: printf("%s",0) - Segmentation fault Date: Mon, 27 May 1996 12:45:10 +0200 Organization: Informia Lines: 8 Message-ID: <31A987B6.F1@algonet.se> NNTP-Posting-Host: aristotle.algonet.se NNTP-Posting-User: b37bfb8671f5d77b393c87732e2a5b740 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp The following line will produce a "Segmentation fault" -error on some platforms/compilers: printf("%s",0); However, some platforms/compilers will produce a string like "(Null)" or similar. Is it possible to tell the compiler what to do in this situation? /Rikard Thunberg, thunberg AT algonet DOT se