Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Spurious diagnostic messages Date: Thu, 14 May 2015 08:31:39 -0700 Organization: None to speak of Lines: 20 Message-ID: <87vbfvch0k.fsf@kst-u.example.com> References: <87egn6hesd.fsf@kst-u.example.com> <87zj57dhsi.fsf@kst-u.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="9be37d943435275679235b07c7947eef"; logging-data="28900"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TZaeC8L1pVSXYxW02XqND" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:TDKU+wMHTBUXLi+7dZkzdMJnmLo= sha1:sCk5LoLFcxMJhmJu/0ezkGndC8U= Xref: csiph.com comp.lang.c:61999 Stephen Sprunk writes: > On 14-May-15 04:54, Nathan Wagner wrote: >> On 2015-05-14, Keith Thompson wrote: >>> If you want more than that, say 'A'..'Z' to test for uppercase >>> letters, that might seem reasonable -- but there are potentially >>> lot more than 26 uppercase letters. >> >> ISTM that this is what isupper() is for. Furthermore, it's not >> wildly difficult to gin up a function or macro to do any more complex >> test you may have. > > Unfortunately, those functions only handle single-byte characters. declares iswupper() et al. It was added by C11. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"