lld_str.h

来自「C语言库函数的源代码,是C语言学习参考的好文档。」· C头文件 代码 · 共 44 行

H
44
字号
/* +++Date last modified: 05-Jul-1997 */

/* =======================================================================
    LLD_STR.h       Generic Doubly Linked List for Strings.

                    v1.00  94-08-11

                    - Based on the LLD_BLOB module for variable size data-
                      items. Use the functions in the LLD module for
                      operations not specific to Strings.
                    - Refer to LLD_BLOB.h for comments.
                    - Note that ALL functions of LLD_BLOB are redefined
                      for consistency reasons.

                    This module has no associated .C files.

 _____              This version is Public Domain.
 /_|__|             A.Reitsma, Delft, The Netherlands.
/  | \  --------------------------------------------------------------- */

#ifndef LLD_STR__H
#define LLD_STR__H

#include <string.h>
#include "lld_blob.h"

#define LLDstringCreate()       LLDblobCreate()

#define LLDstringInsert(l,s)    LLDblobInsert( l, s, strlen( s ) +1 )

#define LLDstringAdd(l,s)       LLDblobAdd( l, s, strlen( s ) +1 )

#define LLDstringPrepend(l,s)   LLDblobPrepend( l, s, strlen( s ) +1 )

#define LLDstringAppend(l,s)    LLDblobAppend( l, s, strlen( s ) +1 )

#define LLDstringDelete(l)      LLDblobDelete( l )

#define LLDstringData(l,d)      LLDblobData( l, d )
                                /* returns strlen() +1 !!! */

#endif /* LLD_STR__H */
/* ==== LLD_STR.h  end ================================================ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?