Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Converting IP address to a hex

Lakshmi1984Lakshmi1984 Member Posts: 19

Dear All,

Can somebody help me about how to convert IP address to a hexadecimal value ???

For Ex: If the IP address is "192.168.1.240" how do I convert this to a hexadecimal value ????

Please do help me with the code if someone has tried it out...

Thanks & Regards,

Lakshmi

Comments

  • LundinLundin Member Posts: 3,711
    :
    : Dear All,
    :
    : Can somebody help me about how to convert IP address to a
    : hexadecimal value ???
    :
    : For Ex: If the IP address is "192.168.1.240" how do I convert
    : this to a hexadecimal value ????
    :
    : Please do help me with the code if someone has tried it out...
    :
    : Thanks & Regards,
    :
    : Lakshmi


    The ANSI C funtion strtol() should do the trick.
Sign In or Register to comment.