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

- From: Kees Cook \<hidden\>
- Date: 2016-01-28 14:17:58 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/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
```
