Part Number: MSP432P401R
Tool/software: TI C/C++ Compiler
Hi,
I am restarting this. I cleaned up my code and the problem remains.
Strings are truncated to 10 chars when passed in a call across files, i.e. the call is in one c file, the called function is in another c file.
status = setRegister(g_board, g_category, g_group, g_device, g_register,g_field,value);
I tried changing the API but variable string is still truncated inside the call but remains full length in the caller's context,
i.e. I tried both of these as the API:
int setRegister(char board[LABEL32], char category[LABEL32], char group[LABEL32], char device[LABEL32], char Register[LABEL32], char field[LABEL32], int value);
int setRegister(char *board, char *category, char *group, char *device, char *Register, char *field, int value);
When the string parameter is greater than 10 chars it is truncated to 10.
