+
+/*----------------------------------------------------------------------------*
+ | Routine: char * operand (& argc, & argv)
+ |
+ | Results: returns address of the operand given with a command-line
+ | option. It uses either "-Xoperand" or "-X operand", whichever
+ | is present. The program is terminated if no option is present.
+ |
+ | Side Efct: argc and argv are updated as necessary.
+ *----------------------------------------------------------------------------*/
+
+char *operand(argcp, argvp)
+int * argcp;
+char ***argvp;
+{
+ if ((**argvp)[2]) return(**argvp + 2); /* operand immediately follows */
+ if ((--*argcp) <= 0) /* no operand */
+ error (FATAL, "command-line option operand missing.\n");
+ return(*(++(*argvp))); /* operand next word */
+}
+
+