Category : BBS Programs+Doors
Archive   : CINCLUDE.ZIP
Filename : INDEX.H
Output of file : INDEX.H contained in archive : CINCLUDE.ZIP
** This is the structure definition(s) for the INDEX.BBS file. This
** file is used/modified by the SL-BBS itself.
**
** 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.
**
** 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 INDEX
{
unsigned char status; /* sub-brd access level */
char name [26]; /* sub-brd name */
unsigned int subsysop; /* rec # of sub-sysop (0 if none) */
unsigned int messages; /* # of msg's on sub-brd */
unsigned int next; /* next MSG ID number */
unsigned int index [480]; /* pointers to messages */
unsigned int maxmsglen; /* max msg length */
unsigned char anonymous; /* set if anonymous posts allowed */
unsigned char spare [28]; /* extra bytes for expansion */
};
/*
** 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, "");
else
{
memcpy (buf, &str[1], str[0] & 0x00FF);
buf [str[0] & 0x00FF] = '\0';
}
return (buf);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/