actually the structure doesn't have the same variable type , it has arrays , and different variable types. in the example above , i was just trying to deliver the idea behind the question.
Anyways,...
Type: Posts; User: alaash
actually the structure doesn't have the same variable type , it has arrays , and different variable types. in the example above , i was just trying to deliver the idea behind the question.
Anyways,...
I have a Struct containing about a 300 variables
struct Test
{
int variable1;
int variable 2;
.
.
.
int variable300;
Thx for the reply ,
Actually i just wanted to show how i wanted the result to be. the actual string would be of variable length.so i need a function to transform the string characters to...
i need to convert a string to hexadecimal as follows :
String : "12345678"
needs to be converted to a
char value[4] = { '0x12' ,'0x34' , '0x56' , '0x78'};
How Can that be done ?
Thx