Raised This Month: $ Target: $400
 0% 

Actual size of array.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2013 , 13:09   Re: Actual size of array.
Reply With Quote #8

Quote:
Originally Posted by Nanaka View Post
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.
__________________
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode