Re: XWisp2 with gcc patch

Chris Emerson <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
On Wed, Sep 14, 2005 at 11:29:59AM -0400, Daniel Serpell wrote:
> Gcc uses signed chars as default, so null-terminated strings are signed
> char pointers. The C standard don't specify any default, but I think
> that signed chars are more common.

Gcc on some (most) platforms uses signed chars by default, but it uses
unsigned on PPC for example.

IMO plain "char" should be used for character strings (especially as
that's what the standard library functions take), and signed/unsigned
chars only when you really care about the signedness (ie when you're
dealing with numbers rather than characters).

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.