MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / parse_int

Function parse_int

extern/btyacc/reader.c:1005–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003}
1004
1005static char *parse_int(char *p, int *save)
1006{
1007int neg=0, val=0;
1008
1009 while (isspace(*p)) if (*p++ == '\n') rescan_lineno++;
1010 if (*p == '-') {
1011 neg=1;
1012 p++; }
1013 if (!isdigit(*p)) return 0;
1014 while (isdigit(*p))
1015 val = val*10 + *p++ - '0';
1016 if (neg) val = -val;
1017 if (save) *save = val;
1018 return p;
1019}
1020
1021static void parse_arginfo(bucket *a, char *args, int argslen)
1022{

Callers 1

compile_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected