MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_strlcat

Function rte_strlcat

dpdk/lib/eal/include/rte_string_fns.h:69–76  ·  view source on GitHub ↗

* @internal * DPDK-specific version of strlcat for systems without * libc or libbsd copies of the function */

Source from the content-addressed store, hash-verified

67 * libc or libbsd copies of the function
68 */
69static inline size_t
70rte_strlcat(char *dst, const char *src, size_t size)
71{
72 size_t l = strnlen(dst, size);
73 if (l < size)
74 return l + rte_strlcpy(&dst[l], src, size - l);
75 return l + strlen(src);
76}
77
78/* pull in a strlcpy function */
79#ifdef RTE_EXEC_ENV_FREEBSD

Callers 1

test_rte_strlcatFunction · 0.85

Calls 2

strnlenFunction · 0.85
rte_strlcpyFunction · 0.85

Tested by 1

test_rte_strlcatFunction · 0.68