table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
STRTOBOOL(9) | Basic C Library Functions | STRTOBOOL(9) |
NAME¶
strtobool - convert common user inputs into boolean valuesSYNOPSIS¶
int
strtobool(const char * s,
bool * res);
ARGUMENTS¶
sinput string
res
result
DESCRIPTION¶
This routine returns 0 iff the first character is one of 'Yy1Nn0'. Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.COPYRIGHT¶
February 2017 | Kernel Hackers Manual 3.16 |