Path: csiph.com!news.mixmin.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: signed/unsigned - what will fail Date: Wed, 16 Aug 2023 15:35:14 -0700 Organization: None to speak of Lines: 23 Message-ID: <87y1iak44d.fsf@nosuchdomain.example.com> References: <21d1ef97-8620-4115-b412-7279e0ef4d6bn@googlegroups.com> <7ffec8c7-1b4c-4c3c-9342-daed7af19dabn@googlegroups.com> <89f530cb-dd82-46f9-9567-a1f81e55d239n@googlegroups.com> <6fcfcd10-82e7-4ecb-8bec-e6292ff73322n@googlegroups.com> <87bkf6loo7.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="b05999d425cd7ec276267a84f508b846"; logging-data="3646224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jh6JeXhmjdKTPtGiNPcBp" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:Fq8DKPqdfui/iO/287Rzv4nddP8= sha1:QqfRQhCRfyHbj/OwBvM+S/j93mU= Xref: csiph.com comp.lang.c:172420 Bart writes: > On 16/08/2023 21:26, Keith Thompson wrote: >> Bart writes: >> [...] >>> Unfortunately, in C, string literals have type char*, and char* >>> strings are encountered everywhere, where they can store ASCII, >>> extended ASCII of various kinds, or UTF8. >> No, string literals are of type char[N], where N is the length of the >> literal plus 1. > > Which is usually converted to type char*? Yes, usually, but by no means always. > But this makes little difference to my point: you can't really get > away from C's plain 'char' type if dealing with text and strings. Agreed. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */