diff --git a/gb_string_test.c b/gb_string_test.c new file mode 100644 index 0000000..43ea494 --- /dev/null +++ b/gb_string_test.c @@ -0,0 +1,14 @@ +#define GB_STRING_IMPLEMENTATION +#include +#include +#include "gb_string.h" +#include + +int main(void) { + gbString s = gb_make_string("hello"); + s = gb_printf(s, "(%s) %d %d %d %.*s\n", "hello", 12, 94, -1234, 2, "world"); + printf("%s\n", s); + gb_free_string(s); + s = 0; + return 0; +}