Originally Posted By: irchel2
I'd give malloc() a shot. It allocates memory on the heap instead of the stack. Look up a C language documentation how to use it.
Don't use malloc. Use sys_malloc in lite-c as I suggested above.
Originally Posted By: irchel2
You would have to use int instead of var then, I presume.
The type of the variable is totally irrelevant for sys_malloc / malloc.


Always learn from history, to be sure you make the same mistakes again...