Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Gareth Owen <gwowen@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: unsigned int |
| References | <unsigned-20160731163521@ram.dialup.fu-berlin.de> |
| Date | 2016-07-31 18:51 +0100 |
| Message-ID | <87invlk868.fsf@gmail.com> (permalink) |
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 comp.lang.c | Previous | Next | Find similar | Unroll thread
Re: unsigned int Gareth Owen <gwowen@gmail.com> - 2016-07-31 18:51 +0100
csiph-web