14.18.2.5 Return Values

If the function succeeds, the return value is a pointer to the new string; if the function fails, the return value is a nil pointer.