[Libclc-developers] Re: Some more comments to the current CVS tree
Status: Planning
Brought to you by:
augestad
|
From: Jan E. <je...@li...> - 2003-04-03 16:17:40
|
>>>> 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>).
:(
But stdio.h (at least glib/gcc) has it as (void *)0 defined.
Maybe we gonna introduce some CLC_NULL :D
- Jan Engelhardt
|