Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IpToInt(const s_szIP[])
- {
- new aiBytes[1], iPos;
- aiBytes{0} = strval(s_szIP[iPos]);
- while(iPos < 15 && s_szIP[iPos++] != '.'){}
- aiBytes{1} = strval(s_szIP[iPos]);
- while(iPos < 15 && s_szIP[iPos++] != '.'){}
- aiBytes{2} = strval(s_szIP[iPos]);
- while(iPos < 15 && s_szIP[iPos++] != '.'){}
- aiBytes{3} = strval(s_szIP[iPos]);
- return aiBytes[0];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement