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

Output of file : SYSTEM.H contained in archive : CINCLUDE.ZIP
** This is the structure definition(s) for the system.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 SYSFILE 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 containing system wide
** information. The 2nd record is for the 1st node.
** Note that if no user is logged in, the "logged user name" will be
** valid (will be the name of the previous user), but will have a length
** of 0x00.
** 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 INT3 {
unsigned int low;
unsigned char hi;

struct SYSFILE
struct INT3 syscalls; /* total calls to system */
unsigned int bulletins; /* pointer to bulletins */
unsigned int lastuser; /* last user on the system */
unsigned char lastquote[73]; /* quote left by last user */
unsigned char locks[9]; /* file locks */
unsigned char morelock[6]; /* space for more locks */

char name[26]; /* logged user's name */
unsigned int id; /* logged user's id */
unsigned char stat; /* logged user's chat status */
unsigned char savestat; /* saved stat from door or ext proto */

char extra [211]; /* expansion space */

** 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 : SYSTEM.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: