Hello,
Given an 8 bit octal value sent over a tcp/ip connection how can I read it and display the value?
Regards,
E. Khule
Printable View
Hello,
Given an 8 bit octal value sent over a tcp/ip connection how can I read it and display the value?
Regards,
E. Khule
Read it into an unsigned char, then cast it to an unsigned int for output.
Is it being sent as a text representation of octal value? Try strtol() (or related functions) that take a radix argument.