Raised This Month: $ Target: $400
 0% 

Simple Question about Array.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-25-2015 , 13:04   Re: Simple Question about Array.
Reply With Quote #1

I think it will handle it properly and not have the extra "07".

To "clear out" a string, you can set the first character to the end-of-string character (EOS) (this is how strings are terminated which is why you always need an array that is 1 character longer than the string you intend to put in it).

Code:
playerIP[0] = EOS
In some situations, you do need to do this for the code to work correctly but when using a native like this, you shouldn't have to.
__________________

Last edited by fysiks; 12-25-2015 at 13:10.
fysiks is offline
Reply



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 18:13.


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