MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / getBoolean

Function getBoolean

config.c:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static int getBoolean(const char *str) {
75 if (strcasecmp(str, "false") == 0 ||
76 strcasecmp(str, "off") == 0 ||
77 strcasecmp(str, "no") == 0)
78 return 0;
79
80 if (strcasecmp(str, "true") == 0 ||
81 strcasecmp(str, "on") == 0 ||
82 strcasecmp(str, "yes") == 0)
83 return 1;
84
85 return -1;
86}
87
88static char *getString(const char *str) {
89 if (str[0] != '"')

Callers 1

readEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected