stringbuf.h
来自「在linux环境下的MP3播放软件」· C头文件 代码 · 共 28 行
H
28 行
/* stringbuf: mimicking a bit of C++ to more safely handle strings copyright 2006 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.de initially written by Thomas Orgis*/#ifndef MPG123_STRINGBUF_H#define MPG123_STRINGBUF_H#include <string.h>struct stringbuf{ char* p; size_t size; size_t fill;};void init_stringbuf(struct stringbuf* sb);void free_stringbuf(struct stringbuf* sb);/* returning 0 on error, 1 on success */int resize_stringbuf(struct stringbuf* sb, size_t new);int copy_stringbuf(struct stringbuf* from, struct stringbuf* to);int add_to_stringbuf(struct stringbuf* sb, char* stuff);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?