MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / truefalsetoi

Function truefalsetoi

src/config.cpp:308–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306 *----------------------------------------------------------------------------*/
307
308int truefalsetoi(char *s) {
309 if (!strcasecmp(s,"true")) return 1;
310 else if (!strcasecmp(s,"false")) return 0;
311 else return -1;
312}
313
314int yesnotoi(char *s) {
315 if (!strcasecmp(s,"yes")) return 1;

Callers 2

yesnotoiFunction · 0.85
boolConfigSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected