libdacav 0.9.0
/home/dacav/Projects/libdacav/libdacav/dacav/dacavstrbuf.h File Reference

Buffered string implementation. More...

#include <dacav/dacav.h>
#include <stdlib.h>

Go to the source code of this file.

Typedefs

typedef struct dstrbuf dstrbuf_t
 Opaque type for string buffer.

Functions

dstrbuf_tdstrbuf_new (const char *sep, size_t len)
 Constructor that allocates a new (empty) string buffer.
void dstrbuf_insert (dstrbuf_t *strbuf, const char *str, size_t len)
 Insert a string.
char * dstrbuf_read (dstrbuf_t *strbuf)
 Read from buffer.
char * dstrbuf_extract (dstrbuf_t *strbuf)
 Extract from buffer.
void dstrbuf_free (dstrbuf_t *strbuf)
 Destructor for the string buffer.

Detailed Description

Buffered string implementation.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator