Connecting Tech Pros Worldwide Forums | Help | Site Map

IP address to Long Integer

Newbie
 
Join Date: Jul 2007
Posts: 1
#1: Jul 20 '07
How to convert an IP address to it's equivalent 32 bits long integer using unions and strtok library function? Please help me.

gpraghuram's Avatar
Expert
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,258
#2: Jul 20 '07

re: IP address to Long Integer


Quote:

Originally Posted by kakolibora

How to convert an IP address to it's equivalent 32 bits long integer using unions and strtok library function? Please help me.

inet_addr
will do the work for u.But if u need further info then try to get source code for this and it may help u

Raghuram
Reply