home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / src / dclopt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-05  |  727 b   |  26 lines

  1. /* $Id: dclopt.h,v 1.6 1995/06/04 23:20:50 tom Exp $
  2.  *
  3.  * public interface of dclopt.c (DCL-option decoder)
  4.  */
  5.  
  6. #ifndef DCLOPT_H
  7. #define DCLOPT_H
  8.  
  9. #include "dclarg.h"
  10.  
  11. typedef    struct    {
  12.     char    *opt_name;    /* => full option name            */
  13.     void    *opt_init;    /* => initial value for area        */
  14.     void    *opt_ini2;    /* => default, if no value given    */
  15.     void    *opt_area;    /* => buffer area for value        */
  16.     unsigned
  17.     short    opt_size,    /* 1=flag, 2=value, 3+=string        */
  18.         opt_abbr,    /* minimum length of abbreviation    */
  19.         opt_flag;    /* bit-vector for disjoint option test    */
  20.     } DCLOPT;
  21.  
  22. extern    char *    dclarea (char *name, int size, DCLOPT *opt, int size_opt);
  23. extern    int    dclopt (char *msg_, DCLARG *d_, DCLOPT *opt, int size_opt);
  24.  
  25. #endif /* DCLOPT_H */
  26.