I need to convert char array of C into string c++ but the char array is an element of struct.
Code:
This is my Structure in C
typedef struct myStruct
{
char name[50];
char abc[50];
ESL_BOOL status;
}MyStruct;
and I want to access name[50] in c++ but for that I have to convert it into string.
I have tried strcpy and memcpy.
I am using ESL_BOOL status; and it is working but confused with name[50].