home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / gopher / gopher1.01 / object / STRstring.h < prev    next >
C/C++ Source or Header  |  1992-04-13  |  425b  |  24 lines

  1. /*
  2.  * This is a funky dynamic string written in c....  
  3.  */
  4.  
  5. #ifndef STRstring_H
  6. #define STRstring_H
  7.  
  8. struct string_struct {
  9.      int  len;
  10.      char *data;
  11. };
  12.  
  13. typedef struct string_struct String;
  14.  
  15. String *STRnew();
  16. void    STRinit(/* String*  */);
  17. void    STRset(/* String*, char* */);
  18. void    STRdestroy(/* String* */);
  19. #define STRget(s) ((s)->data)
  20. #define STRlen(s) ((s)->len)
  21. String* STRcat();
  22. int     STRcmp();
  23. #endif
  24.