Hello,
I have a function that wants a char* as a parameter. I want to pass it a structure, and then traverse it with pointer addition, for example if the first field in the structure was a short and i wanted to get to the second I would do something like:
char *passed_in_value *= (4 * sizeof(BYTE));
Is something like this possible? I guess the real question is, is it possible to get a char* to a structure and treat it as a long array or list of characters.
thanks
I have a function that wants a char* as a parameter. I want to pass it a structure, and then traverse it with pointer addition, for example if the first field in the structure was a short and i wanted to get to the second I would do something like:
char *passed_in_value *= (4 * sizeof(BYTE));
Is something like this possible? I guess the real question is, is it possible to get a char* to a structure and treat it as a long array or list of characters.
thanks