GP32 Strcpy / Gm_strcpy


no_skill

gp2x! bananas! mayhem! mayham!
Joined
Jan 9, 2004
Messages
734
Age
37
Location
Austria
Website
72dpiarmy.com
hi,

i just wanted to know if it's save to use strcpy and gm_strcpy in one project.

what's the difference between both anyway?
 
no_skill posted on Jul 22 2004 at 06:49 AM said:
hi,

i just wanted to know if it's save to use strcpy and gm_strcpy in one project.

what's the difference between both anyway?
It is strongly recommed to not mix glibc and gp functions. GP uses their own memory management, and if there is a gp function, you must use it. btw, this was one reason to create my own SDK :)
 
Last edited by a moderator:
mixing gm_strcpy() and strcpy() should be save, because there's no memory management happening.

but never use gm_malloc() and malloc() in the same project... I can tell you, I learned the hard way by a missing #define :)

Greetings,
SvOlli
 
Back
Top