From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 743 invoked by alias); 29 Mar 2008 01:19:17 -0000 Received: (qmail 735 invoked by uid 22791); 29 Mar 2008 01:19:16 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Mar 2008 01:18:57 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JfPib-0007Le-LK for gcc-help@gcc.gnu.org; Sat, 29 Mar 2008 01:18:50 +0000 Received: from 65.207.248.83 ([65.207.248.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2008 01:18:49 +0000 Received: from mw_triad by 65.207.248.83 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Mar 2008 01:18:49 +0000 To: gcc-help@gcc.gnu.org From: Matthew Woehlke Subject: Re: Signedness of char and puts() Date: Sat, 29 Mar 2008 01:19:00 -0000 Message-ID: References: <20080328200428.4266C1AD005D@mail14-sin.bigfish.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00291.txt.bz2 Eljay Love-Jensen wrote: > Hi Ed, > >> Does anyone know why this occurs? > > Those are three different types. > + char > + unsigned char > + signed char > > "Hello" is a char*, not an unsigned char* or signed char*. > > (In C++ "Hello" is a char const*.) Isn't "Hello" technically const in C also, since -fwrite-strings was (thankfully, rightly) killed? -- Matthew Do you know where your towel is?