home *** CD-ROM | disk | FTP | other *** search
/ cs.rhul.ac.uk / www.cs.rhul.ac.uk.zip / www.cs.rhul.ac.uk / pub / rdp / rdp_cs3470.tar / rdp_supp / arg.h < prev    next >
C/C++ Source or Header  |  1998-05-07  |  822b  |  25 lines

  1. /*******************************************************************************
  2. *
  3. * RDP release 1.50 by Adrian Johnstone (A.Johnstone@rhbnc.ac.uk) 20 December 1997
  4. *
  5. * arg.h - process command line arguments
  6. *
  7. * This file may be freely distributed. Please mail improvements to the author.
  8. *
  9. *******************************************************************************/
  10. #ifndef ARG_H
  11. #define ARG_H
  12.  
  13. enum arg_kind_type{ARG_BLANK, ARG_BOOLEAN, ARG_NUMERIC, ARG_STRING}; 
  14.  
  15. void arg_boolean(char key, char * description, int * intvalue); 
  16. void arg_help(char * msg); 
  17. void arg_message(char * description); 
  18. void arg_numeric(char key, char * description, unsigned long * unsignedvalue); 
  19. char * * arg_process(int argc, char * argv[]); 
  20. void arg_string(char key, char * description, char * * str); 
  21.  
  22. #endif
  23.  
  24. /* End of arg.h */
  25.