home *** CD-ROM | disk | FTP | other *** search
- /* MAIN.C */
- static char sccsid[] = "@(#)main.c 1.5 93/04/21 Copyright (c)1993 thalerd";
- #include <stdio.h>
- #include "config.h"
-
- /******************************************************************************/
- /* PROCESS COMMAND LINE ARGUMENTS */
- /******************************************************************************
- Function: main
- Called by: (user)
- Arguments: command line arguments
- Returns: (nothing)
- Calls: init to set up global variables
- join to start up first conference
- command to process user commands
- Description: This function parses the command line arguments,
- and acts as the main driver.
- *******************************************************************************/
- void /* RETURNS: (nothing) */
- main(argc, argv) /* ARGUMENTS: */
- int argc; /* Number of command line arguments */
- char **argv; /* Array of command line arguments */
- {
- init(argc,argv); /* set up globals */
-
- while (get_command(NULL));
- endbbs(0);
- }
-
- /******************************************************************************/
- /* The following output routines simply call the standard output routines. */
- /* In the Motif version, the w-output routines send output to the windows */
- /******************************************************************************/
- void
- wputs(s)
- char *s;
- {
- fputs(s,stdout); /* NO newline like puts() does */
- }
-
- extern char evalbuf[MAX_LINE_LENGTH];
- /* KKK note that the eval stuff won't work with MOTIF until this is
- changed around a bit */
- void
- wfputs(s,stream)
- char *s;
- FILE *stream;
- {
- if (stream)
- fputs(s,stream);
- else
- strcat(evalbuf,s,MAX_LINE_LENGTH-strlen(evalbuf)-1);
- }
-
- void
- wputchar(c)
- char c;
- {
- putchar(c);
- }
-
- void
- wfputc(c,fp)
- char c;
- FILE *fp;
- {
- char s[2];
-
- if (fp)
- fputc(c,fp);
- else {
- s[0]=c; s[1]='\0';
- strcat(evalbuf,s,MAX_LINE_LENGTH-strlen(evalbuf)-1);
- }
- }
-
- void
- wgets(a,b)
- char *a,*b;
- {
- }
-