1STRTOBOOL(9)               Basic C Library Functions              STRTOBOOL(9)
2
3
4

NAME

6       strtobool - convert common user inputs into boolean values
7

SYNOPSIS

9       int strtobool(const char * s, bool * res);
10

ARGUMENTS

12       s
13           input string
14
15       res
16           result
17

DESCRIPTION

19       This routine returns 0 iff the first character is one of ´Yy1Nn0´.
20       Otherwise it will return -EINVAL. Value pointed to by res is updated
21       upon finding a match.
22
24Kernel Hackers Manual 2.6.         June 2019                      STRTOBOOL(9)
Impressum