|
Page 1 of 1
|
[ 4 posts ] |
|
Dynamic sized arrays in RobotC?
| Author |
Message |
|
fxlj007
Rookie
Joined: Sun Jun 17, 2012 11:18 am Posts: 26
|
 Dynamic sized arrays in RobotC?
In standard C language, this is not available. I can only define array with constant size, unless using sth. like malloc(), which is not available in RobotC. But I am reading LEGO's "LEGO MINDSTORMS NXT executable file specication" http://mindstorms.lego.com/en-us/support/files/default.aspx, and it says: Is such function available in RobotC?
|
| Sun Oct 07, 2012 5:55 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2866 Location: Rotterdam, The Netherlands
|
 Re: Dynamic sized arrays in RobotC?
Not that I know of and if it does exist, it is not exposed to the users.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Sun Oct 07, 2012 7:37 am |
|
 |
|
fxlj007
Rookie
Joined: Sun Jun 17, 2012 11:18 am Posts: 26
|
 Re: Dynamic sized arrays in RobotC?
So RobotC doesn't support any dynamic memory allocation, right?
|
| Sun Oct 07, 2012 9:49 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2866 Location: Rotterdam, The Netherlands
|
 Re: Dynamic sized arrays in RobotC?
That is correct.
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Sun Oct 07, 2012 10:04 am |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 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
|
|