home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / deskutils / _a_l / boota / C-source / h / argfuncs next >
Encoding:
Text File  |  1993-03-03  |  2.0 KB  |  34 lines

  1. /* > h.argfuncs - (c) Paul Witheridge - Version 1.01 - 05 Nov 1992   */
  2.  
  3. /*===================================================================*/
  4. /*  ArgFuncs header file                                             */
  5. /*===================================================================*/
  6.  
  7. void analargs(                     /* Analyse standard arguments     */
  8.   const int argc,                     /* Number of arguments         */
  9.   const char *argv[],                 /* Array of pointers to args   */
  10.   const int posnc,                    /* Number of positional args   */
  11.   const char **(**posnptr)[],         /* Ptrs to positional args     */
  12.   const char options[],               /* Option characters           */
  13.   unsigned char *flags,               /* Pointer to flag byte        */
  14.   const unsigned char optflags[],     /* Option flag settings        */
  15.   const char **optval[]) ;            /* Ptrs to value ptrs          */
  16.  
  17.   /*                                                                 */
  18.   /*  Note: 4th argument "posnptr" is actually a pointer to a        */
  19.   /*  pointer to an array of pointers to pointer to character.       */
  20.   /*                                                                 */
  21.   /*  If the pointer pointed to by "posnptr" is NULL, then analargs  */
  22.   /*  will create the array by allocating storage and storing in     */
  23.   /*  the array elements pointers to the appropriate elements in     */
  24.   /*  the argv array, with a NULL pointer as a terminator. This      */
  25.   /*  allows for the processing of a variable number of positional   */
  26.   /*  parameters.                                                    */
  27.   /*                                                                 */
  28.  
  29. void displaytext(                  /* Display help text etc          */
  30.   const char *text,                   /* Ptr to text                 */
  31.   const unsigned char tabs[]) ;       /* Ptr to array of tab values  */
  32.  
  33. /*===================================================================*/
  34.