/*======================================================================*/
/*  Calculator EXIT Command Routine(s)                                  */
/*======================================================================*/

#include stdio

/* global flags and variables */

extern int  debug_flag;
extern int  exit_flag;
extern int  error_flag;


/*----------------------------------------------------------------------*/
/*  EXIT Command                                                        */
/*                                                                      */
/*  Parameter  Description                                              */
/*                                                                      */
/*  options    processing option flags                                  */
/*  stringcnt  length of input string                                   */
/*  stringptr  address of input string                                  */
/*  tokencnt   length of current token                                  */
/*  tokenptr   address of current token                                 */
/*  character  character value of character token                       */
/*  number     binary value of numeric token                            */
/*  parameter  user supplied argument                                   */
/*                                                                      */
/*----------------------------------------------------------------------*/

int execute_exit_command (options,stringcnt,stringptr,tokencnt,
                          tokenptr,character,number,parameter)
int  options,stringcnt,tokencnt,number,parameter;
char character,stringptr[],tokenptr[];
{
   exit_flag = TRUE;

   if (debug_flag)
      printf ("Token:      %.*s\n",tokencnt,tokenptr);

   return 1;
}
