TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Gerrit Kuehn
from: Stas Degteff
date: 2003-01-14 15:34:40
subject: Re: MsgRead / MsgWrite

Hello Gerrit.

13 Jan 03 20:34, you wrote to smapi hackers:

 GK> Can someone explain me, why functions in e.g. sq_read.c and
 GK> sq_write.c have such strange handling of their return values?

Value 0xffffffff is reserved for error return, not an real message number.
-1l is equivalent to it.

This strange usage of -1 produced historically: where 16 bit value be use
for real message number.

Todo: replace ((unsigned long) -1l) to macro, defined  like as:

#define NOMESSAGE 0xffffffff


Stas

--- GoldED+/W32 1.1.4.7
* Origin: Grumbler point: E-burg, Russia (2:5080/102)
SEEN-BY: 633/267 270
@PATH: 5080/102 68 5 3830/9 123/500 106/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™.