table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
KSTRTOBOOL(9) | Basic C Library Functions | KSTRTOBOOL(9) |
NAME¶
kstrtobool - convert common user inputs into boolean valuesSYNOPSIS¶
int
kstrtobool(const char * s,
bool * res);
ARGUMENTS¶
sinput string
res
result
DESCRIPTION¶
This routine returns 0 iff the first character is one of 'Yy1Nn0', or [oO][NnFf] for “on” and “off”. Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |