home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 240.lha / CC / sources / dstr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-07  |  293 b   |  20 lines

  1. /*
  2.  * dynamic strings
  3.  * March 1989, Miles Bader
  4.  */
  5.  
  6. struct dstr {
  7.     int max,len;
  8.     char *buf;
  9. };
  10.  
  11. struct dstr *dstr_Create();
  12. void dstr_Free();
  13. void dstr_Clear();
  14. void dstr_Set();
  15. void dstr_Append();
  16. void dstr_Addf();
  17.  
  18. #define dstr_GetBuf(d) ((d)->buf)
  19. #define dstr_GetLen(d) ((d)->len)
  20.