WiP: String arrays for translations
DE, EN, FI, FR are done, now we need all the other languages
This commit is contained in:
committed by
Raphael Coeffic
parent
db684893e2
commit
56bec5ca3a
@@ -151,11 +151,9 @@ char *strcat_zchar(char *dest, const char *name, uint8_t size,
|
||||
#endif
|
||||
|
||||
#if !defined(BOOT)
|
||||
char *getStringAtIndex(char *dest, const char *s, int idx)
|
||||
char *getStringAtIndex(char *dest, const char **s, int idx)
|
||||
{
|
||||
uint8_t len = s[0];
|
||||
strncpy(dest, s + 1 + len * idx, len);
|
||||
dest[len] = '\0';
|
||||
strcpy(dest, s[idx]);
|
||||
return dest;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user