View unanswered posts | View active topics It is currently Fri Aug 22, 2014 12:30 pm






Reply to topic  [ 1 post ] 
how to change default string size ? 
Author Message
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: how to change default string size ?
Is there a reason why you can't just use char array instead of string type? Strictly speaking, there is no string type in ANSI C anyway. The only worry I would have using char array is the lack of pointer support (as I was told) that makes passing a char array around impossible but then you have the snprintf intrinsic that takes "char *" in RobotCIntrinsics.c. So it must have some pointer support. That's what confuses me and I never have time to test this out. So may be you should try out the snprintf with char array and let us know if it works. Some RobotC intrinsics support char * and some don't and I never figure out why.


Fri Feb 24, 2012 7:20 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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.