# \[PATCH 0/3\] lib: add "on" and "off" to strtobool

- From: Kees Cook \<hidden\>
- Date: 2016-01-28 14:17:58 
- List: netdev
- Page: https://ratatoskr.run/netdev/2016/01/4671912
- Thread: https://ratatoskr.run/linuxppc-dev/2016/01/4671912/t.md

```text
This consolidates logic for handling "on"/"off" parsing for bools into
the existing strtobool function. This requires making sure callers are
passing NULL-terminated strings.

-Kees

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
