Converting IP address to a hex


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

  • :
    : 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.

Howdy, Stranger!

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

Categories

In this Discussion