views:

542

answers:

1

Hi I am trying to convert char *str = "10.20.30.40" ; in to unsigned int . can u pls tell me any method is there or any sample code . pls share me.

+6  A: 

Guessing at what you actually want to do, take a look at the functions inet_addr and inet_aton.

Jon Bright
1+ A very qualified guess.
Skurmedel