Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #72865

Re: While loop with bool, same issue

From August Karlstrom <fusionfile@gmail.com>
Newsgroups comp.lang.c
Subject Re: While loop with bool, same issue
Date 2015-10-14 20:11 +0200
Organization Aioe.org NNTP Server
Message-ID <mvm5td$o3e$1@speranza.aioe.org> (permalink)
References <96769962-2192-444e-a738-01306756e949@googlegroups.com> <mvm3e9$fjs$1@dont-email.me>

Show all headers | View raw


On 2015-10-14 19:31, Eric Sosman wrote:
>      Aside: The `if' is unnecessary.  You could simply do
>
>      return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');

Or maybe

	return isalpha(c);

after including ctype.h.


-- August

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

While loop with bool, same issue Alla _ <modelling.data@gmail.com> - 2015-10-14 08:59 -0700
  Re: While loop with bool, same issue Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-14 13:31 -0400
    Re: While loop with bool, same issue August Karlstrom <fusionfile@gmail.com> - 2015-10-14 20:11 +0200
      Re: While loop with bool, same issue Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-14 14:26 -0400
    Re: While loop with bool, same issue Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-10-14 20:44 +0100
  Re: While loop with bool, same issue Siri Cruz <chine.bleu@yahoo.com> - 2015-10-14 10:45 -0700
    Re: While loop with bool, same issue Keith Thompson <kst-u@mib.org> - 2015-10-14 13:15 -0700
  Re: While loop with bool, same issue Keith Thompson <kst-u@mib.org> - 2015-10-14 11:42 -0700
    Re: While loop with bool, same issue Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-10-15 08:20 +0000

csiph-web