MCPcopy Create free account
hub / github.com/amule-project/amule / ScanInt

Function ScanInt

src/IPFilterScanner.cpp:889–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887}
888
889static bool ScanInt(const char * buf, uint32 & a)
890{
891 while (*buf < '0') {
892 buf++; // skip whitespace
893 }
894 a = 0;
895 while (*buf >= '0' && *buf <= '9') {
896 a = a * 10 + *buf - '0';
897 if (a > 255) {
898 return false;
899 }
900 buf++;
901 }
902 return true;
903}
904
905#line 906 "IPFilterScanner.cpp"
906#line 907 "IPFilterScanner.cpp"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected