2
stringbuf: mimicking a bit of C++ to more safely handle strings
4
copyright 2006 by the mpg123 project - free software under the terms of the LGPL 2.1
5
see COPYING and AUTHORS files in distribution or http://mpg123.de
6
initially written by Thomas Orgis
8
#ifndef MPG123_STRINGBUF_H
9
#define MPG123_STRINGBUF_H
20
void init_stringbuf(struct stringbuf* sb);
21
void free_stringbuf(struct stringbuf* sb);
22
/* returning 0 on error, 1 on success */
23
int resize_stringbuf(struct stringbuf* sb, size_t new);
24
int copy_stringbuf(struct stringbuf* from, struct stringbuf* to);
25
int add_to_stringbuf(struct stringbuf* sb, char* stuff);