libmya 0.1.0
Library to parse Mya language.
Loading...
Searching...
No Matches
dstring.h
Go to the documentation of this file.
1#pragma once
2
3#include "types/dstring.h"
4
13void
14dstring_init(dstring_t* string, unsigned int buffer_size);
15
21void
23
30void
31dstring_putchar(dstring_t* string, int character);
32
39void
40dstring_concat(dstring_t* string, const char* source);
41
48void
49dstring_copy(dstring_t* string, const char* source);
void dstring_concat(dstring_t *string, const char *source)
Concatenates a string on the end of the dstring.
Definition dstring.c:34
void dstring_init(dstring_t *string, unsigned int buffer_size)
Initializes a dynamic string (dstring).
Definition dstring.c:10
void dstring_putchar(dstring_t *string, int character)
Concatenates a character on the end of the dstring.
Definition dstring.c:25
void dstring_copy(dstring_t *string, const char *source)
Copies the content of source to the dstring.
Definition dstring.c:46
void dstring_close(dstring_t *string)
Closes the dynamic string.
Definition dstring.c:18
struct dstring dstring_t
A dynamic string (dstring) that automatically reallocate her buffer when needed.