Dynamic memory allocation

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Modab
Posts: 4
Joined: Tue Jun 28, 2005 5:23 am

Dynamic memory allocation

Post by Modab »

Hi, I'm still pretty new to PSP programming, so I was wondering if someone could talk to me about performing dynamic memory allocation? Do we just use malloc? Are there size limitations?

Thanks a bunch.
wulf
Posts: 81
Joined: Wed Apr 13, 2005 6:56 pm

Post by wulf »

yeah, you need to use malloc() (and free(), when you are done). I use it in the text editor I am making.. However, Malloc & free aren't specifically psp related, so you would probably be better off searching google for "malloc tutorial" or something... that would give you the best picture on how to use it properly.
Post Reply