0

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.

4

1 回答 1

6

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

于 2009-08-27T12:27:54.627 回答