strlcpy() will be needed by the subcmd library. Move it to the shared tools/lib/string.c file which can be used by other tools.
Showing the changes to tools/include/linux/string.h (1 of 4 files). Show all
Unified · Split
| @@ -8,4 +8,8 @@ void *memdup(const void *src, size_t len); · 7 unmodified lines | |||
| 8 | 8 | ||
| 9 | int strtobool(const char *s, bool *res); | 9 | int strtobool(const char *s, bool *res); |
| 10 | 10 | ||
| 11 | #ifndef __UCLIBC__ | ||
| 12 | extern size_t strlcpy(char *dest, const char *src, size_t size); | ||
| 13 | #endif | ||
| 14 | |||
| 11 | #endif /* _LINUX_STRING_H_ */ | 15 | #endif /* _LINUX_STRING_H_ */ |