Strval segfault?
#4

I'm using y_utils IPtoInt, i.e
pawn Код:
stock IPToInt(ip[])
{
    new
        ipv = strval(ip) << 24,
        pos = 0;
    while (pos < 15 && ip[pos++] != '.') {}
    ipv += strval(ip[pos]) << 16;
    while (pos < 15 && ip[pos++] != '.') {}
    ipv += strval(ip[pos]) << 8;
    while (pos < 15 && ip[pos++] != '.') {}
    return ipv + strval(ip[pos]);
}
Reply


Messages In This Thread
Strval segfault? - by Misiur - 27.08.2017, 12:11
Re: Strval segfault? - by Misiur - 27.08.2017, 12:30
Re: Strval segfault? - by Vince - 27.08.2017, 12:56
Re: Strval segfault? - by Misiur - 27.08.2017, 13:04

Forum Jump:


Users browsing this thread: 3 Guest(s)