vstring.h

来自「pgp soucecode pgp soucecode」· C头文件 代码 · 共 16 行

H
16
字号
/* @(#) vstring.h 1.2 92/01/15 21:53:19 */

struct vstring {
    char   *str;			/* string value */
    char   *last;			/* last position */
};

extern struct vstring *vs_alloc();	/* initial allocation */
extern char *vs_realloc();		/* string extension */
extern char *vs_strcpy();		/* copy string */

/* macro to add one character to auto-resized string */

#define	VS_ADDCH(vs,wp,c) \
    ((wp < (vs)->last || (wp = vs_realloc(vs,wp))) ? (*wp++ = c) : 0)

⌨️ 快捷键说明

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