跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

How do I get a a string value from GUIX?

Latest Updated:10/17/2016

Question:

How to I get a string value from GUIX?

Answer:

You can obtain a string value from GUIX using the gx_system_string_get function. It returns a pointer that points to the null-terminated string in the GUIX language table. For example, if the language table has SUNNY stored for GX_STRING_ID_STRING_FORECAST_DAY the following code will return a pointer to the null terminated text string "SUNNY".

GX_CHAR * p_string;

status = gx_system_string_get (GX_STRING_ID_STRING_FORECAST_DAY, &p_string);

if (status) __BKPT();

p_string now points to "SUNNY" in the GUIX language table.

Suitable Products
SSP
GUIX