[Gambas-devel] GB.Realloc() on NULL pointers
Benoît Minisini
gambas at ...1...
Wed Sep 24 17:39:22 CEST 2014
Le 24/09/2014 14:34, Tobias Boege a écrit :
> Hi Benoit,
>
> I saw that GB.Realloc() can't deal with NULL pointers. The manpage of my C
> library's realloc says:
>
> "If ptr is NULL, then the call is equivalent to malloc(size)".
>
> Do you think this would be good in GB.Realloc(), too, or should I implement
> this logic myself?
>
I will add it.
I didn't use that feature because if I see a function named "realloc",
it for re-allocating things, not for allocating it for the first time. :-)
--
Benoît Minisini
More information about the Devel
mailing list