|
libmya 0.1.0
Library to parse Mya language.
|
#include "types/dstring.h"

Go to the source code of this file.
Functions | |
| void | dstring_init (dstring_t *string, unsigned int buffer_size) |
| Initializes a dynamic string (dstring). | |
| void | dstring_close (dstring_t *string) |
| Closes the dynamic string. | |
| void | dstring_putchar (dstring_t *string, int character) |
| Concatenates a character on the end of the dstring. | |
| void | dstring_concat (dstring_t *string, const char *source) |
| Concatenates a string on the end of the dstring. | |
| void | dstring_copy (dstring_t *string, const char *source) |
Copies the content of source to the dstring. | |
| void dstring_close | ( | dstring_t * | string | ) |
Closes the dynamic string.
| string | The string to be closed. |
Definition at line 18 of file dstring.c.
| void dstring_concat | ( | dstring_t * | string, |
| const char * | source ) |
| void dstring_copy | ( | dstring_t * | string, |
| const char * | source ) |
Copies the content of source to the dstring.
| string | The dstring where to copy. |
| source | The string to be copied. |
Definition at line 50 of file dstring.c.
| void dstring_init | ( | dstring_t * | string, |
| unsigned int | buffer_size ) |
Initializes a dynamic string (dstring).
The dynamic string automatically realloc her buffer when needed. So you don't need to care about buffer sizes.
| string | Pointer for the dstring to be initialized. |
| buffer_size | The initial buffer size for the string. If zero, doesn't allocate memory until required. |
Definition at line 10 of file dstring.c.
| void dstring_putchar | ( | dstring_t * | string, |
| int | character ) |