| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: [C] An interesting question |
Hi Bob. BS> Simple... Most of the character functions (e.g. getc()) have to BS> return an int in order to be able to return an error condition - BS> typically -1. If it returned a char, -1 would simply be 0xff which BS> is a legal character. By returning an int, an error is BS> unambiguously larger than a character here all the standard libraries are built with signed chars, so that doesn't work. -=> Bye <=- ---* Origin: How to make Kleenex dance? Blow a little boogie in 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™.