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


Groups > comp.lang.c > #91405 > unrolled thread

Re: unsigned int

Started byGareth Owen <gwowen@gmail.com>
First post2016-07-31 18:51 +0100
Last post2016-07-31 18:51 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.c

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: unsigned int Gareth Owen <gwowen@gmail.com> - 2016-07-31 18:51 +0100

#91405 — Re: unsigned int

FromGareth Owen <gwowen@gmail.com>
Date2016-07-31 18:51 +0100
SubjectRe: unsigned int
Message-ID<87invlk868.fsf@gmail.com>
ram@zedat.fu-berlin.de (Stefan Ram) writes:

> - what did I miss? (Especially with regard to common errors
>   commited when using »unsigned«.)

That naturally expressed reverse-iteration idioms like:

for(x = strlen(s);x >= 0; --x) {
  if(s[x] == '@') return x;
}
return NOT_FOUND;

break when x is unsigned.

[toc] | [standalone]


Back to top | Article view | comp.lang.c


csiph-web