gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add gn_phonebook2vcardstr()


From: Philip Kendall
Subject: Re: [PATCH] Add gn_phonebook2vcardstr()
Date: Sun, 15 Jun 2008 16:16:22 +0100
User-agent: Mutt/1.5.12-2006-07-14

On Fri, Jun 13, 2008 at 08:47:00PM +0200, Pawel Kot wrote:
> 
> +     str.str = NULL;
> +     str.end = NULL;
> +     str.len = 0;
> 
> or memset(&str, 0, sizeof(str))? Don't know which is better.

In theory, and just about in practice, memset does not guarantee to set
pointers to NULL.

<http://c-faq.com/null/machexamp.html>

Cheers,

-- 
  Philip Kendall <address@hidden>
  http://www.shadowmagic.org.uk/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]