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

Function yesnotoi

src/config.cpp:314–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314int yesnotoi(char *s) {
315 if (!strcasecmp(s,"yes")) return 1;
316 else if (!strcasecmp(s,"no")) return 0;
317 else return truefalsetoi(s);
318}
319
320
321void appendServerSaveParams(time_t seconds, int changes) {

Callers 4

sentinelConfigSetCommandFunction · 0.85
boolConfigSetFunction · 0.85

Calls 1

truefalsetoiFunction · 0.85

Tested by

no test coverage detected