Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Sun, 31 Jul 2016 12:51:27 -0500 |
| From | Gareth Owen <gwowen@gmail.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: unsigned int |
| References | <unsigned-20160731163521@ram.dialup.fu-berlin.de> |
| Date | Sun, 31 Jul 2016 18:51:27 +0100 |
| Message-ID | <87invlk868.fsf@gmail.com> (permalink) |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:VuJpVNNU58bOBkgpKGuCXDgnqQ4= |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 13 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-ec4PE0s4QDoPY/iJ7yArjYqdX5rUDzUgZ4gKB0j/SRapfSZxvzeQBG5CtIIQJTJct9ePL5bxPVgTP5E!8xysNanSXSE8xP0oQ6Kz3Z5Jn1dGkmrubjI4CBokALO/slL/dMKCb6XoyLIQoNItTus= |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 1310 |
| Xref | csiph.com comp.lang.c:91405 |
Show key headers only | View raw
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