util: Add _sentinel_ to strextend()

Since it must be NULL terminated.
This commit is contained in:
Colin Walters 2013-04-30 13:11:49 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent 27eda16e98
commit a432cb691c

View file

@ -633,7 +633,7 @@ static inline void *mempset(void *s, int c, size_t n) {
char *hexmem(const void *p, size_t l);
void *unhexmem(const char *p, size_t l);
char *strextend(char **x, ...);
char *strextend(char **x, ...) _sentinel_;
char *strrep(const char *s, unsigned n);
void* greedy_realloc(void **p, size_t *allocated, size_t need);