Δημοσιεύτηκε: 16 Φεβ 2012, 21:30
από migf1
Από που προκύπτει αυτό ρε συ Κώστα, θα με τρελάνεις τελείως; Εγώ στην τεκμηρίωση της realloc() διαβάζω...

έγραψε:
RETURN VALUE

Upon successful completion with a size not equal to 0, realloc() returns a pointer to the (possibly moved) allocated space. If size is 0, either a null pointer or a unique pointer that can be successfully passed to free() is returned. If there is not enough available memory, realloc() returns a null pointer and sets errno to [ENOMEM].