home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ioctlapi.zip / appsrc.zip / parse.h < prev    next >
Text File  |  1999-11-16  |  828b  |  22 lines

  1. //-----------------------------------------------------------------------------
  2. // Freeware.  This file may be used freely to promote the ioctl90 mixer API.
  3. //-----------------------------------------------------------------------------
  4.  
  5. // parse.h
  6. //
  7. // Structures to support command line parsing
  8. // and device setting auto-detection
  9.  
  10. #define MAXTOKENSIZE 64
  11. typedef struct {
  12.    BOOL          fLeadingDashFound;
  13.    BOOL          fSeparatorFound;
  14.    BOOL          fNumericFound;
  15.    ULONG         ulValue;                  // Number on right side of colon
  16.    char          szKeyword [MAXTOKENSIZE]; // String on left side of colon
  17.    char          szValue [MAXTOKENSIZE];   // String on right side of colon
  18.    } PARSEDTOKEN;
  19. typedef PARSEDTOKEN *PPARSEDTOKEN;
  20.  
  21. int ParseCommandLine (int argc, char *argv[]);
  22.