Dotted decimal to long conversion?
Dotted decimal to long conversion?
- Subject: Dotted decimal to long conversion?
- From: Allan Hoeltje <email@hidden>
- Date: Wed, 10 Aug 2005 11:55:07 -0700
Is there a kernel or network utility function for converting a dotted
"255.255.255.255" IP string address to unsigned long? I've searched with
the proper buzz words but can't seem to find anything but I am sure I saw
such a function in the literature somewhere. Sure, I can hack up a cool
function using shifts and four calls to strtol but there must be a better
way that is more efficient and accounts for endian issues.
-Allan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden