J
Joseph Wakeling
Hello all,
Is there any particular advantage or reason for always declaring a char
to be signed or unsigned?
Further, when compiling with gcc on Linux, I received warnings when
trying to sprintf an unsigned char *. I presume this is because in
Linux the default char type is signed. Is there any way to avoid the
error? Or should I not be using unsigned chars where the result would
be used with printf, sprintf, etc.?
Many thanks,
-- Joe
Is there any particular advantage or reason for always declaring a char
to be signed or unsigned?
Further, when compiling with gcc on Linux, I received warnings when
trying to sprintf an unsigned char *. I presume this is because in
Linux the default char type is signed. Is there any way to avoid the
error? Or should I not be using unsigned chars where the result would
be used with printf, sprintf, etc.?
Many thanks,
-- Joe