home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / TWIN / TWIN. / ilib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-24  |  3.1 KB  |  138 lines

  1. /* ilib.h */
  2. /*********************************************************************
  3.  This is the client's #include file for accessing functions in ilib.a
  4.  Istvan Mohos, 1987
  5. **********************************************************************/
  6.  
  7. /* functions archived in ilib.a: */
  8. char * ialntok();
  9. char * ianytok();
  10. int    ibcmp();
  11. void   ibcopy();
  12. void   iblank();
  13. int    ibreakl();
  14. char * ictok();
  15. char * icopy();
  16. int    icount();
  17. void   icue();
  18. int    idamage();
  19. char * idate();
  20. void   idump();
  21. int    iego();
  22. int    ierror();
  23. int    iexpect();
  24. int    ifamily();
  25. int    ifilter();
  26. int    igroup();
  27. int    ihash();
  28. int    ihasharg();
  29. char * ihms();
  30. int    iinput();
  31. char * ilast();
  32. int    iline();
  33. int    ilist();
  34. int    ilistn();
  35. int    illistn();
  36. int    ilongest();
  37. int    ilower();
  38. char * imatch();
  39. int    imode();
  40. int    imonth();
  41. int    imung();
  42. int    inest();
  43. char * inl();
  44. char * inull();
  45. int    inumsearch();
  46. void   inumsort();
  47. int    inumstrcmp();
  48. char * inextl();
  49. int    iopt();
  50. int    iread();
  51. int    irotate();
  52. int    iround();
  53. int    isearch();
  54. void   isort();
  55. char * istartl();
  56. int    istripcom();
  57. int    istripdq();
  58. int    istripsq();
  59. int    istripstr();
  60. int    itexrect();
  61. int    itoday();
  62. int    itohour();
  63. int    itok();
  64. int    itomin();
  65. int    itomonth();
  66. int    itosec();
  67. int    itoyear();
  68. int    itran();
  69. void   itwin();
  70. int    iuniq();
  71. int    iuniqa();
  72. int    iupper();
  73. char * iwhich();
  74. int    iwrite();
  75. int    iwritopn();
  76. char * ixmatch();
  77. int    ixmung();
  78. int    ixsearch();
  79.  
  80. char * malloc();
  81. char * calloc();
  82. long   lseek();
  83.  
  84. #include <stdio.h>
  85. #ifndef X_OK
  86. #    ifdef REALUNIX
  87. #        define F_OK 0
  88. #        define X_OK 1
  89. #        define W_OK 2
  90. #        define R_OK 4
  91. #        include <fcntl.h>
  92. #    else
  93. #        include <sys/file.h>
  94. #    endif
  95. #endif
  96.  
  97. extern char ierbuf[];
  98. extern int  ierflag;
  99.  
  100. #define INITOKF       1    /* setup forward parsing */
  101. #define INITOKR      -1    /* setup reverse parsing */
  102. #define ITOKF         2    /* forward parse */
  103. #define ITOKR        -2    /* reverse parse */
  104.  
  105. #define DOUNCOUN(x,y) (y) = (x); --(y) >= 0
  106. #define BADCHARP(p)   ((p) == (char *)NULL || *(p) == '\0')
  107. #define NULCHARP(p)   ((p) == (char *)NULL)
  108. #define ZPT           (char *)NULL
  109.  
  110. #define IANYTOK       0
  111. #define IALNTOK       1
  112. #define ICTOK         2
  113.  
  114. #define SPACE_LINE   -1
  115. #define LINE_ONLY     0
  116. #define LINE_SPACE    1
  117.  
  118. #define IROTR         1 /* rotate 90 deg. to right */
  119. #define IROTL        -1 /* rotate 90 deg. to left */
  120. #define IROTOR        3 /* rotate 180 deg. over and 90 deg. to right */
  121. #define IROTOL       -3 /* rotate 180 deg. over and 90 deg. to left */
  122.  
  123. #define SHORTMO       0 /* idate format: Jun 23 1988 */
  124. #define SHORTUPMO     1 /* idate format: JUN 23 1988 */
  125. #define LONGMO        2 /* idate format: June 23, 1988 */
  126. #define LONGUPMO      3 /* idate format: JUNE 23, 1988 */
  127.  
  128. #define WHITE(c)      ((c) < 33)
  129. #define BLACK(c)      ((c) > 32)
  130. #define TONEXWHITE(p) while (*(p) && (*(p)>32)) (p)++
  131. #define TONEXBLACK(p) while (*(p) && (*(p)<33)) (p)++
  132.  
  133. #define IFOURK        4096
  134. #define ITWOK         2048
  135. #define IONEK         1024
  136. #define IHALFK        512
  137. #define IQUARTK       256
  138.