4
Answers

How to debug this?

Ask a question
Hi,

I am calling a function which is declared as follows:
typedef char HMI_CHAR;
typedef UINT32 LANG_SID_T;
HmLanguage1GetString(LANG_SID_T p_sid, HMI_CHAR * p_str_dest_P, UINT8 p_req_length, UINT8 p_cur_language_U8);

Now i am calling the above function as below:
HMI_CHAR *static_string;
UINT8 replace_char = 0;
HmLanguage1GetString(0xB4C, &static_string, 12, replace_char);

Actually i the API which i am calling will return a string in the static_string variable which is nothing but a destination pointer.
What i want to know is am i passing the parameters correctly?
And one more thing i want know is after getting the string which is returned by the API, how can i store the same in an array one character after the other?

Note: This is pure C coding. Reply needed ASAP.


Answers (4)