home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / LLS_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.     LLS_STR.h       Generic Singly Linked List for Strings.
  5.  
  6.                     v1.00  94-08-11
  7.  
  8.                     - Based on the LLS_BLOB module for variable size data-
  9.                       items. Use the functions in the LLS module for
  10.                       operations not specific to Strings.
  11.                     - Refer to LLS_BLOB.h for comments.
  12.                     - Note that ALL functions of LLS_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 LLS_STR__H
  22. #define LLS_STR__H
  23.  
  24. #include <string.h>
  25. #include "lls_blob.h"
  26.  
  27. #define LLSstringCreate()       LLSblobCreate()
  28.  
  29. #define LLSstringInsert(l,s)    LLSblobInsert( l, s, strlen( s ) +1 )
  30.  
  31. #define LLSstringAdd(l,s)       LLSblobAdd( l, s, strlen( s ) +1 )
  32.  
  33. #define LLSstringPrepend(l,s)   LLSblobPrepend( l, s, strlen( s ) +1 )
  34.  
  35. #define LLSstringAppend(l,s)    LLSblobAppend( l, s, strlen( s ) +1 )
  36.  
  37. #define LLSstringDelete(l)      LLSblobDelete( l )
  38.  
  39. #define LLSstringData(l,d)      LLSblobData( l, d )
  40.                                 /* returns strlen() +1 !!! */
  41.  
  42. #endif /* LLS_STR__H */
  43. /* ==== LLS_STR.h  end ================================================ */
  44.