add gb_string_test.c
This commit is contained in:
parent
e29be3ef1a
commit
6363789394
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue