Reputation:
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.
Upvotes: 0
Views: 1305
Reputation: 13748
Guessing at what you actually want to do, take a look at the functions inet_addr
and inet_aton
.
Upvotes: 6