Hi Salem and all,
How can I cat two bytes which is read in as char and then converted in hex, for e.g.
If I read the first byte (char) and then covert it to hex (26), read
the next char and convert it to hex (ac). Cat the both should be 26ac , then only
print the decimal value.
Is my logic correct or is there a different way of doing this
Please help
Chris
How can I cat two bytes which is read in as char and then converted in hex, for e.g.
If I read the first byte (char) and then covert it to hex (26), read
the next char and convert it to hex (ac). Cat the both should be 26ac , then only
print the decimal value.
Is my logic correct or is there a different way of doing this
Please help
Chris
Code:
if(j > 67 && j < 70)
{
if(j==68)
{
printf(" ");
}
sprintf(datum, "%x" , xya[j]);
xy1=fgetc(in);
sprintf(datum_1, "%x" , xy1);
// this is where i get stuck
cat datum datum_1
sprintf (SCV ,"%d" , result fom cat );
//
printf("%d", datum);
}