eal: support strlcat function
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 17 Jan 2019 17:30:32 +0000 (17:30 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 12 Feb 2019 09:04:28 +0000 (10:04 +0100)
commit146e57627f4b53dbdeecea3ee1f36f185cb55661
treef89004bc71da0d8c89750de4f8b34b2135874586
parent0b8572a0c101778d259b822bc39008d8298df4dc
eal: support strlcat function

Add the strlcat function to DPDK to exist alongside the strlcpy one.
While strncat is generally safe for use for concatenation, the API for the
strlcat function is perhaps a little nicer to use, and supports truncation
detection.

See commit 5364de644a4b ("eal: support strlcpy function") for more
details on the function selection logic, since we only should be using the
DPDK-provided version when no system-provided version is present.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/include/rte_string_fns.h
test/test/test_string_fns.c