/*---------McGill-Computer-Vision-and-Robotics-Laboratory--C-Module---------
 *		
 * NAME:	useful.h
 *
 * USAGE:	include "/u1/robot/util/useful.h"
 *
 * DESCRIPTION: Contains definitions used in the routines contained in
 *		/u1/robot/util/useful.a
 *
 * NOTES:
 *
 * AUTHOR/DATE:	John Lloyd, September, 1984
 *
 *-------------McGill-Computer-Vision-and-Robotics-Laboratory--------------*/

/* definitions for the function cputime */

double cputime ();

enum cputime_option
	{ System,		/* Get time used executing system calls */
	  User, 		/* Get time used executing process code */
	  All			/* Get all of the time used by a process */
	};

/* Return values from the routines scan_int() and print_int() */

#define S_SYNTAX	-1	/* Illegal syntax for item being scanned */
#define S_OVERFLOW	-2	/* Value of item exceeds variable range */

/* ARG typedef for argument vector routine callv() */

typedef union _arg {
  	int intVal;
	double doubleVal;
	char *strVal;
} ARG;	  

