Re: [Libclc-developers] Some more comments to the current CVS tree
Status: Planning
Brought to you by:
augestad
|
From: Hallvard B F. <h.b...@us...> - 2003-04-03 14:15:17
|
Jan Engelhardt writes:
>>> doc/string/clc_stralloc.txt:
>>> char *s = clc_stralloc("foo", "bar", (char *)0);
>>>
>>> Can't we assume that NULL is (something casted) 0? (...)
>>
>> No. (...)
>
> umm I proposed (void *)0, which is not a bare 0, but may
> not necessarily be (char*)0?
You proposed NULL. That may be #defined as 0. That is null pointer
constant (see ANSI 3.2.2.3 Pointers), like the Standard requires of NULL
(in 4.1.5 Common definitions <stddef.h>).
--
Hallvard
|