S
salsipius
I have a char array say
-->char in[13] = "0004 000A"
with a space between the 2 HEX numbers that I am trying to read into a
long so I can test individual bits of the number. using
sscanf(in,"%x", &l1);
the result is 4, this is great but I also want the other half of the
char array . How can I access the other part of the HEX using a similar
method? like
sscanf(in,"%x", &l1); //--> Gives me l1 = 4
sscanf(in,"%x", &l2); //--> Gives me l2 = 10
Can anyone help me out on this please?
-->char in[13] = "0004 000A"
with a space between the 2 HEX numbers that I am trying to read into a
long so I can test individual bits of the number. using
sscanf(in,"%x", &l1);
the result is 4, this is great but I also want the other half of the
char array . How can I access the other part of the HEX using a similar
method? like
sscanf(in,"%x", &l1); //--> Gives me l1 = 4
sscanf(in,"%x", &l2); //--> Gives me l2 = 10
Can anyone help me out on this please?