View unanswered posts | View active topics It is currently Fri Oct 24, 2014 3:45 am






Reply to topic  [ 3 posts ] 
A way to store more than 20 chars in a string var ? 
Author Message
Rookie

Joined: Sat Mar 16, 2013 4:18 pm
Posts: 8
Post A way to store more than 20 chars in a string var ?
Hi all, Is there a way to store more than 20 chars in a string variable ?

Thanks in advance.


Thu May 16, 2013 9:43 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3227
Location: Rotterdam, The Netherlands
Post Re: A way to store more than 20 chars in a string var ?
Use char * instead, they're a lot more flexible. The only way to store more than 20 chars in a string is to make it a const string.

= Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu May 16, 2013 10:10 am
Profile WWW
Rookie

Joined: Sat Mar 16, 2013 4:18 pm
Posts: 8
Post Re: A way to store more than 20 chars in a string var ?
Thank you for your reply. I know that I can use char * in such a situation; however, I want to get the advantage of String library functions in RobotC like StringFind and Stringdelete.


Thu May 16, 2013 3:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.