]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/strutils: add strdup_between_structs()
authorKarel Zak <kzak@redhat.com>
Wed, 23 Oct 2019 10:28:09 +0000 (12:28 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Oct 2019 11:25:08 +0000 (12:25 +0100)
commit787226dc28a5c1ec136210f5e82060be4bde3907
treeb08881dd6565dd6763c5d870c79cde8196b3d59d
parent779e3c97aa5ff1c1ebeb39d310757d6c24739a80
include/strutils: add strdup_between_structs()

* improve strdup_to_offset() readability

* add strdup_between_offsets() and strdup_between_structs() to have
  better support for use-cases when we copy structs

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