home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / LLD_STR.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  2KB  |  44 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /* =======================================================================
  4.     LLD_STR.h       Generic Doubly Linked List for Strings.
  5.  
  6.                     v1.00  94-08-11
  7.  
  8.                     - Based on the LLD_BLOB module for variable size data-
  9.                       items. Use the functions in the LLD module for
  10.                       operations not specific to Strings.
  11.                     - Refer to LLD_BLOB.h for comments.
  12.                     - Note that ALL functions of LLD_BLOB are redefined
  13.                       for consistency reasons.
  14.  
  15.                     This module has no associated .C files.
  16.  
  17.  _____              This version is Public Domain.
  18.  /_|__|             A.Reitsma, Delft, The Netherlands.
  19. /  | \  --------------------------------------------------------------- */
  20.  
  21. #ifndef LLD_STR__H
  22. #define LLD_STR__H
  23.  
  24. #include <string.h>
  25. #include "lld_blob.h"
  26.  
  27. #define LLDstringCreate()       LLDblobCreate()
  28.  
  29. #define LLDstringInsert(l,s)    LLDblobInsert( l, s, strlen( s ) +1 )
  30.  
  31. #define LLDstringAdd(l,s)       LLDblobAdd( l, s, strlen( s ) +1 )
  32.  
  33. #define LLDstringPrepend(l,s)   LLDblobPrepend( l, s, strlen( s ) +1 )
  34.  
  35. #define LLDstringAppend(l,s)    LLDblobAppend( l, s, strlen( s ) +1 )
  36.  
  37. #define LLDstringDelete(l)      LLDblobDelete( l )
  38.  
  39. #define LLDstringData(l,d)      LLDblobData( l, d )
  40.                                 /* returns strlen() +1 !!! */
  41.  
  42. #endif /* LLD_STR__H */
  43. /* ==== LLD_STR.h  end ================================================ */
  44.