Quote:
Originally Posted by Nanaka
So, how can I check size of this array?
Sizeof returns 128, but I'm looking for 11, because "192.168.1.1" == 11.
PS. Sorry for my weak english.
|
The "size of the array" will always be 128. The length of the string is what you want using strlen(). Also, you don't need an array that big because the largest IP you can get from that function is 21 so you should dimension the array with 22.
__________________