| .. | .. |
|---|
| 2 | 2 | #ifndef _LINUX_STRING_H_ |
|---|
| 3 | 3 | #define _LINUX_STRING_H_ |
|---|
| 4 | 4 | |
|---|
| 5 | | - |
|---|
| 6 | 5 | #include <linux/compiler.h> /* for inline */ |
|---|
| 7 | 6 | #include <linux/types.h> /* for size_t */ |
|---|
| 8 | 7 | #include <linux/stddef.h> /* for NULL */ |
|---|
| .. | .. |
|---|
| 183 | 182 | extern void argv_free(char **argv); |
|---|
| 184 | 183 | |
|---|
| 185 | 184 | extern bool sysfs_streq(const char *s1, const char *s2); |
|---|
| 186 | | -extern int kstrtobool(const char *s, bool *res); |
|---|
| 187 | | -static inline int strtobool(const char *s, bool *res) |
|---|
| 188 | | -{ |
|---|
| 189 | | - return kstrtobool(s, res); |
|---|
| 190 | | -} |
|---|
| 191 | | - |
|---|
| 192 | 185 | int match_string(const char * const *array, size_t n, const char *string); |
|---|
| 193 | 186 | int __sysfs_match_string(const char * const *array, size_t n, const char *s); |
|---|
| 194 | 187 | |
|---|