| .. | .. |
|---|
| 7 | 7 | |
|---|
| 8 | 8 | void *memdup(const void *src, size_t len); |
|---|
| 9 | 9 | |
|---|
| 10 | +char **argv_split(const char *str, int *argcp); |
|---|
| 11 | +void argv_free(char **argv); |
|---|
| 12 | + |
|---|
| 10 | 13 | int strtobool(const char *s, bool *res); |
|---|
| 11 | 14 | |
|---|
| 12 | 15 | /* |
|---|
| .. | .. |
|---|
| 27 | 30 | |
|---|
| 28 | 31 | char *str_error_r(int errnum, char *buf, size_t buflen); |
|---|
| 29 | 32 | |
|---|
| 33 | +char *strreplace(char *s, char old, char new); |
|---|
| 34 | + |
|---|
| 30 | 35 | /** |
|---|
| 31 | 36 | * strstarts - does @str start with @prefix? |
|---|
| 32 | 37 | * @str: string to examine |
|---|
| .. | .. |
|---|
| 37 | 42 | return strncmp(str, prefix, strlen(prefix)) == 0; |
|---|
| 38 | 43 | } |
|---|
| 39 | 44 | |
|---|
| 40 | | -#endif /* _LINUX_STRING_H_ */ |
|---|
| 45 | +extern char * __must_check skip_spaces(const char *); |
|---|
| 46 | + |
|---|
| 47 | +extern char *strim(char *); |
|---|
| 48 | + |
|---|
| 49 | +extern void *memchr_inv(const void *start, int c, size_t bytes); |
|---|
| 50 | +#endif /* _TOOLS_LINUX_STRING_H_ */ |
|---|