Back to index

im-sdk  12.3.91
getarg.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 * Error       numbers       as returned by GAGetArg     routine:                       *
00003 *                                                                 *
00004 *                                   Gershon Elber               Mar 88          *
00005 ****************************************************************************
00006 * History:                                                        *
00007 * 11 Mar 88 - Version 1.0 by Gershon Elber.                              *
00008 ***************************************************************************/
00009 
00010 #ifndef GET_ARG_H
00011 #define GET_ARG_H
00012 
00013 #define       CMD_ERR_NotAnOpt   1                      /* None Option found. */
00014 #define       CMD_ERR_NoSuchOpt  2                 /* Undefined Option Found. */
00015 #define       CMD_ERR_WildEmpty  3                /* Empty input for !*? seq. */
00016 #define       CMD_ERR_NumRead         4                 /* Failed on reading number. */
00017 #define       CMD_ERR_AllSatis   5        /* Fail to satisfy (must-'!') option. */
00018 
00019 #ifdef USE_VARARGS
00020 int GAGetArgs(int va_alist, ...);
00021 #else
00022 int GAGetArgs(int argc, char **argv, char *CtrlStr, ...);
00023 #endif /* USE_VARARGS */
00024 
00025 void GAPrintErrMsg(int Error);
00026 void GAPrintHowTo(char *CtrlStr);
00027 
00028 #endif /* GET_ARG_H */