dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: char[] assignment in plugin api

Re: char[] assignment in plugin api

From: Björn Stenberg <>
Date: Tue, 6 Jan 2004 15:43:53 +0100 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.

Received on 2004-01-06

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy