MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_atoll

Function acl_atoll

lib_acl/src/stdlib/string/acl_mystring.c:432–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432long long acl_atoll(const char *s)
433{
434 long long num = 0;
435 int neg = 0;
436
437 while (isspace((int) (*s))) {
438 s++;
439 }
440
441 if (*s == '-') {
442 neg = 1;
443 s++;
444 }
445
446 while (isdigit((int) (*s))) {
447 num = 10 * num + (*s - '0');
448 s++;
449 }
450
451 if (neg) {
452 num = -num;
453 }
454 return num;
455}
456
457#ifdef ACL_WINDOWS
458

Callers 3

acl_atoui64Function · 0.85
acl_atoi64Function · 0.85
checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…