]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/c: add str2memcpy() and mem2strcpy()
authorKarel Zak <kzak@redhat.com>
Wed, 3 Oct 2018 15:03:11 +0000 (17:03 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Oct 2018 15:03:11 +0000 (17:03 +0200)
commita338eb4a467e136970c6fc6891f10d80535f8765
tree675d7de2daec789e9dea02a42c55f50aa3b54c3a
parent671295131e7c88e5ea53b5a045e3244da5ff8207
include/c: add str2memcpy() and mem2strcpy()

str2memcpy() - copy zero terminated string to optionally terminated buffer

mem2strcpy() - copy from buffer to zero terminated string

Signed-off-by: Karel Zak <kzak@redhat.com>
include/strutils.h