8adbd90991
Appending string by using sprintf with realloc will be generally usable and add sprintf_append_realloc() and vsprintf_append_realloc() to the utility. These APIs follow realloc about buffer management, i.e., the original buffer is left untouched if they fail. Besides, the original buffer is NULL, they are equivalent to sprintf_alloc() and vsprintf_alloc(), respectively. Change-Id: I8b69d9640e86e1862ddd3917995bad6f59426b7e Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Signed-off-by: Chunyang Hui <chunyang.hui@intel.com> Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/436913 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> |
||
---|---|---|
.. | ||
base64.c | ||
bit_array.c | ||
cpuset.c | ||
crc16.c | ||
crc32_ieee.c | ||
crc32.c | ||
crc32c.c | ||
dif.c | ||
fd.c | ||
Makefile | ||
strerror_tls.c | ||
string.c | ||
uuid.c |