 | | Re: memory leak in string handling
|
|
Jamie Obrien <jamien@interworx.com.au> wrote: You can't do this: (...) You probably meant char *d2 = dest; like the original author wrote. Here also: (...) You probably meant return dest; like the original author wrote. -Kekoa (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: memory leak in string handling
|
|
(...) I don't know of any leaks, but this line includes the terminating \0 in the output string: (...) Try the following instead: while (*d2) d2++; Presumably if you allocated a buffer of exactly the right size for a correct strcat, you code would (...) (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|
| |
 | | (canceled)
|
|
|
| |
 | | Re: memory leak in string handling
|
|
(...) But strcat isn't implemented in legOS is it? At least I had trouble finding it when I needed it to use in a random number generator. But this was in 0.2.3, so I don't know about 0.2.4. Tobias (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|
| |
 | | (canceled)
|
|
|
| |
 | | Programming The Scout
|
|
Hi List , Is there anyone making any kind of programming to the Scout ? Seems to me that the scout is abandoned by lego and the list . Let's make the Scout programming wheel go round. Jeronimo Avelar (26 years ago, 20-Jun-00, to lugnet.robotics.scout)
|
| |
 | | Re: global output control
|
|
Just had to add my two cents worth; NegateOutput RestoreOutput JB (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: global output control
|
|
(...) What's wrong with Obvert? (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.nqc)
|
| |
 | | memory leak in string handling
|
|
This is not, as far as I know, something that is the matter with legos, but rather with my C programming skills. I'm trying to write the function strcat, but apparantly I'm losing memory somewhere. If anyone can see any apparant leak, please let me (...) (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: global output control
|
|
(...) How about DontInvertOutput? Not beautiful, but IMHO clearer. Jürgen (26 years ago, 20-Jun-00, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: More Reviewers Needed for New Mindstorms Book
|
|
Thanks to everyone that replied! We have more than enough reviewers now. :) -Ben (...) (26 years ago, 20-Jun-00, to lugnet.robotics, lugnet.robotics.rcx)
|
| |
 | | VB Upload Problem
|
|
I'm having trouble uploading data from within VBA (Microsoft Word). I wrote the Example program from page 93 of the SDK, and added an .InitComm before the UploadDatalog command. When I run the script, the green light comes on in the tower as if data (...) (26 years ago, 20-Jun-00, to lugnet.robotics, lugnet.robotics.rcx)
|
| |
 | | Has anyone built and ice/snow vehicle?
|
|
Hello: I was just digging through some goodies and noticed a bunch of what I guess are minifig ski's....couldn't help but think about building up some contraption to use them...not much snow in San Diego this time of year, though...And on another (...) (26 years ago, 20-Jun-00, to lugnet.robotics)
|
| |
 | | More Reviewers Needed for New Mindstorms Book
|
|
Hi all. Addison-Wesley is looking for some more reviewers for a book I am writing about LEGO Mindstorms (primarily RCX and RIS). If you are interested, please contact me at ben@alum.mit.edu and I will put you in touch with them. Thanks! -Ben Erwin (26 years ago, 19-Jun-00, to lugnet.robotics, lugnet.robotics.rcx)
|
| |
 | | Re: global output control
|
|
"Matthew Miller" <mattdm@mattdm.org> wrote in message news:slrn8kshgc.sof.....bu.edu... (...) first, (...) It won't do any good to call Revert without Invert though... I guess one confusion with Revert is that it wouldn't switch the output back to (...) (26 years ago, 19-Jun-00, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: global output control
|
|
(...) The only problem is that "revert" implies that invert must be called first, and I don't think that is the case. (26 years ago, 19-Jun-00, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: global output control
|
|
"Matthew Miller" <mattdm@mattdm.org> wrote in message news:slrn8kpub3.v5a.....bu.edu... (...) "RevertOutput". (...) I think RevertOutput is fine. I actually wonder how often that call will end being used in user's programs? The InvertOutput command (...) (26 years ago, 19-Jun-00, to lugnet.robotics.rcx.nqc)
|
| |
 | | Re: **** Lego rotation sensors ****
|
|
(...) Try to get your hands on an actual LEGO catalog (2000), I got a german one. You can order a lot of MindStorms stuff by mail. (26 years ago, 19-Jun-00, to lugnet.robotics)
|
| |
 | | Re: **** Lego rotation sensors ****
|
|
(...) Anybody knows the answer for France (or if need be Germany)? Jürgen (26 years ago, 19-Jun-00, to lugnet.robotics)
|
| |
 | | Re: RCX speaking a foreign IR language...
|
|
(...) As far as I know, no one has done anything like that yet, even with LegOS. Would it be possible to have the robot hold the AC remote? (26 years ago, 19-Jun-00, to lugnet.robotics)
|