| | Re: New to legOS, can you get it seperately?
|
|
(...) It is free, but it won't do you much good without an RCX- to the best of my knowledge it won't run on anything else. (...) It's not really another type of C- just a different set of libraries. Other than that, same old C. -Luis (...) ---...--- (...) (24 years ago, 21-Jun-00, to lugnet.robotics.rcx.legos)
|
|
| | (canceled)
|
|
|
|
| | Re: SDL and legOS (was: memory left)
|
|
Hi guys I found this tutorial about SDL. (...) (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|
|
| | (canceled)
|
|
|
|
| | 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 (24 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 (...) (24 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 (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|
|
| | (canceled)
|
|
|
|
| | 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 (...) (24 years ago, 20-Jun-00, to lugnet.robotics.rcx.legos)
|