Rockbox mail archiveSubject: Re: char assignment in plugin api
Re: char assignment in plugin api
From: Björn Stenberg <bjorn_at_haxx.se>
Date: Tue, 6 Jan 2004 15:43:53 +0100
> Funny. When you program a plugin you cannot initialize a string with
> char mystring = "mystring";
> because inernally it seems to use memcpy. But that function is only
> available via the api pointer. Is that fixable / worth fixing?
The preferred way to use a hardcoded string is:
char* mystring = "mystring";
This will not need mempcy(). It has the additional benefit of saving some ram.
-- BjörnReceived on 2004-01-06