* @internal * DPDK-specific version of strlcat for systems without * libc or libbsd copies of the function */
| 67 | * libc or libbsd copies of the function |
| 68 | */ |
| 69 | static inline size_t |
| 70 | rte_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 |