You can use malloc (sys_malloc) to do that.
Dont forget to free the memory