signed | unsigned char?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm wondering what type of char I should pass to the various functions that
deal with strings. I also wanted to know if it mattered.
I was just passing char to functions but I wanted to know how big it was and
that's not easy to find out when you don't know if it's signed or not.
I tried using unsigned chars and char and then compiling with the option
-unsigned-char (I think it's called) but I'm still getting warnings like:

-wsign-compare
XXXXXXX function expected `char' but argument is type `unsigned char'





--
View this message in context: http://gcc.1065356.n5.nabble.com/signed-unsigned-char-tp967953.html
Sent from the gcc - Help mailing list archive at Nabble.com.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux