Mercurial > hg > th-libs
changeset 443:1d2d214ac433
Rename functions th_pstrcat() and th_pstrcpy() to th_pstr_cat() and th_pstr_cpy()
to be more consistent with th_pstr_*printf()
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Oct 2017 17:17:09 +0300 |
parents | 54081d784d75 |
children | 1920a31927b2 |
files | th_string.c th_string.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Thu Oct 12 17:13:47 2017 +0300 +++ b/th_string.c Thu Oct 19 17:17:09 2017 +0300 @@ -843,7 +843,7 @@ /* Copy a given string over in *pdst. */ -int th_pstrcpy(char **pdst, const char *src) +int th_pstr_cpy(char **pdst, const char *src) { assert(pdst != NULL); @@ -861,7 +861,7 @@ /* Concatenates a given string into string pointed by *pdst. */ -int th_pstrcat(char **pdst, const char *src) +int th_pstr_cat(char **pdst, const char *src) { assert(pdst != NULL);
--- a/th_string.h Thu Oct 12 17:13:47 2017 +0300 +++ b/th_string.h Thu Oct 19 17:17:09 2017 +0300 @@ -113,8 +113,8 @@ void th_pstr_vprintf(char **buf, const char *fmt, va_list ap); void th_pstr_printf(char **buf, const char *fmt, ...); -int th_pstrcpy(char **pdst, const char *src); -int th_pstrcat(char **pdst, const char *src); +int th_pstr_cpy(char **pdst, const char *src); +int th_pstr_cat(char **pdst, const char *src); /* Parsing, matching