From 6363789394373f780760d847dcf1fff28e26522e Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Wed, 21 Jul 2021 23:22:32 -0400 Subject: [PATCH] add gb_string_test.c --- gb_string_test.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 gb_string_test.c 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; +}