* Use an asprintf wrapper, to report errors and NULLify the result.

This commit is contained in:
Justin Maggard
2012-03-14 17:57:21 +00:00
parent c9d979886b
commit cabbd0b1de
10 changed files with 77 additions and 53 deletions

View File

@ -32,6 +32,9 @@ strcatf(struct string_s *str, char *fmt, ...);
void
strncpyt(char *dst, const char *src, size_t len);
inline int
xasprintf(char **strp, char *fmt, ...);
int
ends_with(const char * haystack, const char * needle);