Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: char[] assignment in plugin api
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2004-01-06


phil_at_carangg.de wrote:
> 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örn



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa