[fpc-devel] small changes in math.pp (attach 6Kb)

Marco van de Voort marcov at stack.nl
Wed Jul 20 17:01:53 CEST 2005


> | > and base2power func
> |
> 
> If you know how to write it, you can put this function in an external unit of
> your own.. doesn't have to be in the original unit, if others don't want it
> there. I use an IP address converter function when using sockets that isn't in
> the sockets.pp, which is just a wrapper around shl. Handy in this situation,
> because Copy and Pasting ip addresses is not easy when you always have to
> convert to shl.

In 2.0 afaik there are routines to convert IPs in string form to a value, in
an endian correct way. htons and strtoaddr or so.




More information about the fpc-devel mailing list