Convert common user inputs into boolean values
int strtobool(const char * s, bool * res);
s
input string
res
result
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.