| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | MsgRead / MsgWrite |
Hello folks! Can someone explain me, why functions in e.g. sq_read.c and sq_write.c have such strange handling of their return values? Writing uses sword types, which is more or less straight forward. But reading uses dword types and does really ugly (imho) things to report errors; it typecasts (-1) into unsigned types, which I would consider as bad thing[tm]. Well, it's working as far as I can see, but why is it that way? Has anyone ever considered to change Reading return values to sword or similar to make them the same as the ones for Writing (and to avoid the aforementioned typecasting)?! Regards, Gerrit --- Msged/BSD 6.0.0* Origin: Shock to the System (2:246/4020) SEEN-BY: 633/267 270 @PATH: 246/4020 2411/413 2432/200 2476/418 140/1 106/2000 1 379/1 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™.