Bhrkamal
Bhrkamal

Reputation:

How to convert char * to unsigned int in C programming in win32

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

Answers (1)

Jon Bright
Jon Bright

Reputation: 13748

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

Upvotes: 6

Related Questions