add gb_string_test.c

This commit is contained in:
Peter McGoron 2021-07-21 23:22:32 -04:00
parent e29be3ef1a
commit 6363789394
1 changed files with 14 additions and 0 deletions

14
gb_string_test.c Normal file
View File

@ -0,0 +1,14 @@
#define GB_STRING_IMPLEMENTATION
#include <stdarg.h>
#include <stdlib.h>
#include "gb_string.h"
#include <stdio.h>
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;
}