src/server/util/util.c

branch
config
changeset 256
19259b6c5cf7
parent 127
84e206063b64
child 273
f4eb5d125e58
equal deleted inserted replaced
255:b5d15a4a19f5 256:19259b6c5cf7
392 return 0; 392 return 0;
393 } 393 }
394 return def; 394 return def;
395 } 395 }
396 396
397 int util_getboolean_s(sstr_t s, int def) { 397 int util_getboolean_s(scstr_t s, int def) {
398 if(s.length == 0) { 398 if(s.length == 0) {
399 return def; 399 return def;
400 } 400 }
401 if(s.ptr[0] == 'T' || s.ptr[0] == 't') { 401 if(s.ptr[0] == 'T' || s.ptr[0] == 't') {
402 return 1; 402 return 1;

mercurial