Re: Dotted decimal to long conversion?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: KMail/1.8.2 inet_aton? On Wednesday 10 August 2005 11:55 am, Allan Hoeltje wrote:
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/lazlor%40bigboy.lotaris...
This email sent to lazlor@bigboy.lotaris.org
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Allen Smith