Commit a432cb69 authored by Colin Walters's avatar Colin Walters Committed by Zbigniew Jędrzejewski-Szmek

util: Add _sentinel_ to strextend()

Since it must be NULL terminated.
parent 27eda16e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment