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