[Gambas-devel] GB.Realloc() on NULL pointers

Tobias Boege taboege at ...176...
Wed Sep 24 14:34:12 CEST 2014


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?

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the Devel mailing list