[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add gn_phonebook2vcardstr()
From: |
Pawel Kot |
Subject: |
Re: [PATCH] Add gn_phonebook2vcardstr() |
Date: |
Sun, 15 Jun 2008 21:45:08 +0200 |
Hi,
On Sun, Jun 15, 2008 at 17:16, Philip Kendall
<address@hidden> wrote:
> 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>
You're right, but I don't think anybody would ever compile gnokii on
platforms mentioned there :)
take care,
pkot
--
Henny Youngman - "When I told my doctor I couldn't afford an
operation, he offered to touch-up my X-rays."