diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-04-19 12:43:45 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-05-19 16:55:28 +0930 |
commit | d0f1fed29e6e73d9d17f4c91a5896a4ce3938d45 (patch) | |
tree | d44eae96f46e728cb9d87bca1b2494022bf590a9 /include/linux | |
parent | 6845756b29e4c4e7db41e2d75cafa9d091bc1c07 (diff) | |
download | lwn-d0f1fed29e6e73d9d17f4c91a5896a4ce3938d45.tar.gz lwn-d0f1fed29e6e73d9d17f4c91a5896a4ce3938d45.zip |
Add a strtobool function matching semantics of existing in kernel equivalents
This is a rename of the usr_strtobool proposal, which was a renamed,
relocated and fixed version of previous kstrtobool RFC
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index a716ee2a8adb..a176db2f2c85 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -123,6 +123,7 @@ extern char **argv_split(gfp_t gfp, const char *str, int *argcp); extern void argv_free(char **argv); extern bool sysfs_streq(const char *s1, const char *s2); +extern int strtobool(const char *s, bool *res); #ifdef CONFIG_BINARY_PRINTF int vbin_printf(u32 *bin_buf, size_t size, const char *fmt, va_list args); |