| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Snippets ini.c |
Hi Bob.
>>
>> len = strlen(str);
>> while(len && isspace(string[len-1]))
>> len--;
BS> if (str && 0 != (i = strlen(str)))
BS> {
BS> while (--i >= 0)
BS> {
BS> if (!isspace(str[i]))
BS> break;
BS> }
BS> str[++i] = NUL;
BS> 3. An obvious flaw in both functions is the chance that the buffer will
BS> be under-run. After all, we have no assurance that the byte in memory
BS> just prior to the beginning of the string isn't NUL.
??? how? str[-1] is never tested
-=> Bye <=-
---
* Origin: I smell a rat. Did you bake it or fry it? (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.