Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. IpToInt(const s_szIP[])
  2. {
  3. new aiBytes[1], iPos;
  4. aiBytes{0} = strval(s_szIP[iPos]);
  5. while(iPos < 15 && s_szIP[iPos++] != '.'){}
  6. aiBytes{1} = strval(s_szIP[iPos]);
  7. while(iPos < 15 && s_szIP[iPos++] != '.'){}
  8. aiBytes{2} = strval(s_szIP[iPos]);
  9. while(iPos < 15 && s_szIP[iPos++] != '.'){}
  10. aiBytes{3} = strval(s_szIP[iPos]);
  11. return aiBytes[0];
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement