commit | d4ad66905188ade3fcf53c84c43abc64154b3f70 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Feb 14 11:31:41 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Feb 14 19:02:06 2020 +0100 |
tree | 6475e988d22aa43ed417d53b8f675a79c969b27e | |
parent | 36f586b6944fc40c1e2ecdae85e2df552d3d1fee [diff] |
MINOR: chunk: implement chunk_strncpy() to copy partial strings This does like chunk_strcpy() except that the maximum string length may be limited by the caller. A trailing zero is always appended. This is particularly handy to extract portions of strings to put into the trash for use with libc functions requiring a nul-terminated string.