On Wed, Jun 18, 2008 at 05:52:20PM +0800, Wang Yu wrote:
> Hi, all
> I have the following code:
>     char *p = 0;
>     printf("%s", p);

Using a NULL pointer with %s format isn't portable nor defined. Don't do
that...

-- 
Luciano Rocha <[EMAIL PROTECTED]>
Eurotux Informática, S.A. <http://www.eurotux.com/>

Attachment: pgp1ZyptIqw9R.pgp
Description: PGP signature

Reply via email to