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

Function rte_strlcpy

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

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

Source from the content-addressed store, hash-verified

56 * libc or libbsd copies of the function
57 */
58static inline size_t
59rte_strlcpy(char *dst, const char *src, size_t size)
60{
61 return (size_t)snprintf(dst, size, "%s", src);
62}
63
64/**
65 * @internal

Callers 15

mempool_handle_infoFunction · 0.85
rte_fib6_createFunction · 0.85
rte_fib_createFunction · 0.85
rte_thash_init_ctxFunction · 0.85
rte_thash_add_helperFunction · 0.85
rte_memzone_freeFunction · 0.85
rte_strlcatFunction · 0.85
rte_ml_io_type_to_strFunction · 0.85
rte_rib6_createFunction · 0.85
rte_rib_createFunction · 0.85
mempool_tel_handle_infoFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by 1

mlx5_test_extend_devargsFunction · 0.68