Subject: Re: NULL return value checking
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 04/23/2002 19:23:21
On Tue, 23 Apr 2002, der Mouse wrote:

> > and when doing memset() of memory which might include a pointer. [2]
>
> I have trouble imagining what you'd use NULL for in a call to memset().

No, it's you use memset to zero memory that you use as a structure in the
case said structure contains pointers. You have just initialized the
pointers in that struct to 0, which might not be NULL.

Take care,

Bil