Re:
> inet_addr() may be the function you're looking for. It's usually called from C
...
> ipaddr := '192.255.255.255';
Be sure to null/blank terminate the ipaddr you pass to inet_addr...
it seems to loop on the fourth part, until it finds a non digit.
Also, HP, I looked at inet_addr, and was a bit surprised:
1) the multiply by 10 ought to be inline.
A failure of the optimizer? (*10 can be done here in
two instructions (SH1ADD r, 0, r;
SH2ADD r, r, t)
2) is_digit ought to be inline...not an external procedure.
Stan Sieler [log in to unmask]
www.allegro.com/sieler/wanted/index.html www.allegro.com/sieler