TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: R.WIESER
from: KEITH THOMPSON
date: 2019-02-24 12:55:00
subject: Re: C is not a low level

"R.Wieser"  writes:
> (too many newsgroups, had to snip a few)
>
> Richard,
>
>> Indeed, although I'd cache the length rather than make the compiler find
>
> :-) And thats exactly the kind of thing you should try to avoid.
>
> In this simple example it will work, but you're /still/ trying to write a
> full buffers worth - when you should leave that last character untouched,
> just in case.

"Just in case" what, exactly?  Are you trying to guard against an
off-by-one error but not worry about an off-by-two error?

--
Keith Thompson (The_Other_Keith) kst-u@mib.org  
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.