diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-07-20 14:14:55 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-20 14:14:55 +0200 |
commit | 07d8f20b72e7e18c0e06aa152264c1abbdd09609 (patch) | |
tree | 26457609cb1c16562fdf84f9edcf36d4da04a9f3 /src/basic/string-util.c | |
parent | 790f5b70827dea5c905c41fe1abdc64ef9269fdc (diff) |
alloc-util: add new helpers memdup_suffix0() and newdup_suffix0()
These are similar to memdup() and newdup(), but reserve one extra NUL
byte at the end of the new allocation and initialize it. It's useful
when copying out data from fixed size character arrays where NUL
termination can't be assumed.
Diffstat (limited to 'src/basic/string-util.c')
0 files changed, 0 insertions, 0 deletions