PREV INDEX NEXT

Author: Unknown
Subject: asprintf
Date: Thursday, 17 Sep 2020, 03:17:59

int asprintf(char **strp, const char *fmt, ...);

Does asprintf handle memory allocation for us? I.e., if *strp were already a malloc'd string and asprintf found it necessary to call malloc, would it free the old memory then set *strp to the new malloc allocation?
PREV INDEX NEXT