S
silentlights
Hi,
Can you help me conver a char array into an integer. I am trying something
like..
char carray[5];
int numb;
carray[0] = 1;
carray[1] = 5;
carray[2] = 1;
carray[3] = 5;
numb = (int) carray; // this is what I want to convert
I know this doesnt work. Does anyone of you have a suggestion for that
conversion. This is to be implemented in a 16bit µc. Is there a solution
without using anything like sprintf or multiplication.
Thanks in advance
Densil
Can you help me conver a char array into an integer. I am trying something
like..
char carray[5];
int numb;
carray[0] = 1;
carray[1] = 5;
carray[2] = 1;
carray[3] = 5;
numb = (int) carray; // this is what I want to convert
I know this doesnt work. Does anyone of you have a suggestion for that
conversion. This is to be implemented in a 16bit µc. Is there a solution
without using anything like sprintf or multiplication.
Thanks in advance
Densil