@dissectcode
as said above they depend on the compiler,
but if char is used the first bit is set 1 or 0 . it will some times be a problen when its first address is refferd to some where, eg
print it character wise , signed or char will print as
FFFFFF8c (read in hes because unreadable format)
else for unsigned char
it will show the proper 8c only (in Hex)
signed char wont be any proplem when you are not doing any functions such as memcpy , or realloc with this char*. fi you do compiler should be compatible else safe to use unsigned char
and try in hex for proper checking
run this eg
you will understand the first bit set as 1 is a great problem
*************
#include <stdio.h>
#include <stdlib.h>
int main()
{
unsigned char *unsigbuff;
char *sigbuff;
unsigbuff="76031\r\nŒ„˜RMfg3QouGQQAAAXFAAAALwAAHSU AAAAE";
sigbuff="76031\r\nŒ„˜RMfg3QouGQQAAAXFAAAALwAAHSUAA AAE";
int i=0;
while(i < 40)
{
if(unsigbuff[i] == '\r' )
{
i++;
if(unsigbuff[i] == '\n')
{
i++;
printf("_u: %2X,%2X",unsigbuff[i],sigbuff[i]);
}
}
else{
i++;}
}
return 0;
}