mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-22 12:31:07 +00:00
Recognize "on" and "off".
This commit is contained in:
parent
82e32027af
commit
e20e76a3f7
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,7 @@ t_str_is_true(const char *str)
|
|||
if (str == NULL || *str == '\0')
|
||||
return (0);
|
||||
if (strcmp(str, "1") == 0 ||
|
||||
strcasecmp(str, "on") == 0 ||
|
||||
strcasecmp(str, "y") == 0 ||
|
||||
strcasecmp(str, "yes") == 0 ||
|
||||
strcasecmp(str, "t") == 0 ||
|
||||
|
@ -145,6 +146,7 @@ t_str_is_false(const char *str)
|
|||
if (str == NULL || *str == '\0')
|
||||
return (0);
|
||||
if (strcmp(str, "0") == 0 ||
|
||||
strcasecmp(str, "off") == 0 ||
|
||||
strcasecmp(str, "n") == 0 ||
|
||||
strcasecmp(str, "no") == 0 ||
|
||||
strcasecmp(str, "f") == 0 ||
|
||||
|
|
Loading…
Reference in a new issue