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
5#define DSTRING_CHUNK_SIZE 100
6
10typedef struct dstring
11{
12 char* data;
13 unsigned int length;
14 unsigned int _buffer_size;
A dynamic string (dstring) that automatically reallocate her buffer when needed.
Definition dstring.h:11
unsigned int length
The length of the string.
Definition dstring.h:13
unsigned int _buffer_size
The size of the allocated buffer for the string.
Definition dstring.h:14
char * data
Pointer for the raw string content (a normal C string).
Definition dstring.h:12
struct dstring dstring_t
A dynamic string (dstring) that automatically reallocate her buffer when needed.