]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: add list_append_word function
authorMaxime de Roucy <maxime.deroucy@gmail.com>
Fri, 13 May 2016 21:52:54 +0000 (23:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 May 2016 22:00:54 +0000 (00:00 +0200)
commitdc88785f9ce5b0d582f6ae738f949bcce656754e
tree7ecce8ac20d849dd1d6ab0e5e8a4351308ae2a9c
parent7d1b48fae0e8d98d259df60dbe048b0179fa254c
MINOR: add list_append_word function

int list_append_word(struct list *li, const char *str, char **err)

Append a copy of string <str> (inside a wordlist) at the end of
the list <li>.
The caller is responsible for freeing the <err> and <str> copy memory
area using free().

On failure : return 0 and <err> filled with an error message.
include/common/standard.h
src/standard.c