Copy a string¶
_saf_strdup
is a function defined in utils.c.
Synopsis:
-
char *
_saf_strdup
(const char *s)¶
Description: Same functionality as strdup
but returns an empty string when s
is the null pointer.
Return Value: Returns an allocated, null terminated string on success; null on failure.
Parallel Notes: Independent
See Also:
- Miscellaneous Utilities: Introduction for current chapter