home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Educate / Educate.zip / fortunes.zip / strfile.h < prev    next >
C/C++ Source or Header  |  1992-01-15  |  2KB  |  61 lines

  1. /*  STRFILE.H - Include File defining the STRFILE structure
  2.  *  (C) Copyright 1990 by E.Kappel. All Rights Reserved.
  3.  *
  4.  *  Release Notes:
  5.  *  - Creation          : May 21, 1990
  6.  *  - Last Modification : May 21, 1990
  7.  *
  8.  *  Version Notes:
  9.  *  - 0.00 - May 21, 1990
  10.  *
  11.  *  Change History:
  12.  *  - May 21, 1990 (/ek):
  13.  *     - File creation from orignal version of ver 1.2 (Berkeley) 5/14/81
  14.  *
  15.  *  Bugs and limitations: (see TBC)
  16.  *  - None.
  17.  */
  18.  
  19. /************************************************************************/
  20.  
  21. #ifndef STRFILE_H
  22. #define STRFILE_H
  23.  
  24. /************************************************************************/
  25. /* Independent Constants
  26.  */
  27. #define MAXDELIMS       3
  28.  
  29. /* bits for flag field
  30.  */
  31. #define STR_RANDOM      0x1
  32. #define STR_ORDERED     0x2
  33.  
  34. /************************************************************************/
  35. /* Types
  36.  */
  37. /* string file information table
  38.  */
  39. typedef struct {
  40.    LongWord       numstr;               /* # of strings in the file */
  41.    LongWord       longlen;              /* length of longest string */
  42.    LongWord       shortlen;             /* length of shortest string */
  43.    LongWord      delimmark[MAXDELIMS]; /* delimiter markings */
  44.    SignedLongWord delimpos[MAXDELIMS];  /* delimiter positions */
  45.    Word           flags;                /* bit field for flags */
  46. } STRFILE;
  47.  
  48. /************************************************************************/
  49. /* Variables
  50.  */
  51.  
  52. /************************************************************************/
  53. /* Function Prototypes
  54.  */
  55.  
  56. /************************************************************************/
  57.  
  58. #endif
  59.  
  60. /************************************************************************/
  61.