Category : BBS Programs+Doors
Archive   : CINCLUDE.ZIP
Filename : MESSAGE.H

Output of file : MESSAGE.H contained in archive : CINCLUDE.ZIP
** This is the structure definition(s) for the MESSAGE.BBS file. This
** file is used/modified by the SL-BBS itself.
** At the beginning, you will find a series of small structure
** definitions. These are used in the actual USER structure.
** At the end, you will find a small function named "xstrings". This
** function will translate the Pascal strings into C strings.
** All structure fields (with the exception of the strings) are C
** compatable. The only "surprise" for you will be in the first records
** in the file. The first record is a dummy record.
** Good luck and let me know if you have any questions or comments
** regarding the layout of this file.
** J. D. Berg
** SysOp of "IceBerg Gateway BBS"
** 415-829-3309
** Dublin, Ca 94550

struct DATE {
unsigned char year;
unsigned char month;
unsigned char day;

struct TIME {
unsigned char hour;
unsigned char min;

struct INT3 {
unsigned int low;
unsigned char hi;

struct HEADER
unsigned int id; /* ID number (public msg) */
unsigned char cksum; /* checksum of sender's name */
struct TIME timetype; /* time of msg */
struct DATE datetype; /* date of msg */
struct INT3 rd; /* times msg has been read */
char ffrom[26]; /* fwd from/to info */
unsigned char prot; /* purge protection */
unsigned char reply; /* times msg has been replied to */
unsigned char logged; /* set for mail if logged to disk */
unsigned char ftype; /* descriptor of FFROM field */
unsigned int origmsg; /* ptr to orig msg (if a reply) */
unsigned int origid; /* ID of original msg (if a reply) */
unsigned int origfrom; /* rec # of orig sender (if reply) */

struct MSG
unsigned int next; /* next record of message */
unsigned int copies; /* # of copies for this record */

union {
struct HEADER header;
char data[91];
} body;

#if 0
** This function returns a char pntr that points to a C compatable string
** (NULL terminated), converted from the incoming Pascal string.
static char *xstring (str)

char str[];

static char buf[257];

if (str[0] == 0)
strcpy (buf, "");
memcpy (buf, &str[1], str[0] & 0x00FF);
buf [str[0] & 0x00FF] = '\0';

return (buf);

  3 Responses to “Category : BBS Programs+Doors
Archive   : CINCLUDE.ZIP
Filename : MESSAGE.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: