O manual diz: "It is acceptable to pass ptr as NULL, in which case realloc() will behave identical to malloc().If the new memory cannot be allocated, realloc() returns NULL, and the region at ptr will not be changed."Por isso parece que sim.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16