Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #91405 > unrolled thread
| Started by | Gareth Owen <gwowen@gmail.com> |
|---|---|
| First post | 2016-07-31 18:51 +0100 |
| Last post | 2016-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.
Re: unsigned int Gareth Owen <gwowen@gmail.com> - 2016-07-31 18:51 +0100
| From | Gareth Owen <gwowen@gmail.com> |
|---|---|
| Date | 2016-07-31 18:51 +0100 |
| Subject | Re: 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.
Back to top | Article view | comp.lang.c
csiph-web