home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / macps / str.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-12  |  1.1 KB  |  40 lines

  1. /*
  2.  * Copyright (c) 1988, The Regents of the University of California.
  3.  * Edward Moy, Workstation Software Support Group, Workstation Support Serices,
  4.  * Information Systems and Technology.
  5.  *
  6.  * Permission is granted to any individual or institution to use, copy,
  7.  * or redistribute this software so long as it is not sold for profit,
  8.  * provided that this notice and the original copyright notices are
  9.  * retained.  The University of California makes no representations about the
  10.  * suitability of this software for any purpose.  It is provided "as is"
  11.  * without express or implied warranty.
  12.  */
  13.  
  14. /*
  15.  * SCCSid = "@(#)str.h    2.2 10/24/89"
  16.  */
  17.  
  18. #define    STRSIZEDELTA    1024
  19. #define    STRSIZE        1024
  20.  
  21. #define    STRcompare(str,fp)    STRcompareptr((str), (str)->bufptr, (fp))
  22. #define    STRheadcompare(str,fp)    STRheadcmpptr((str), (str)->bufptr, (fp))
  23. #define    STRputs(str,fp)        STRputsptr((str), (str)->bufptr, (fp))
  24.  
  25. typedef struct {
  26.     unsigned char *bufptr;
  27.     unsigned char *curendptr;
  28.     unsigned char *realendptr;
  29. } STR;
  30.  
  31. extern int rawmode;
  32.  
  33. STR *STRalloc();
  34. int STRcompareptr();
  35. int STRfree();
  36. int STRgets();
  37. int STRheadcmpptr();
  38. unsigned char *STRmatch();
  39. int STRputsptr();
  40.