/* This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, distribute, and modify this file as you see fit. */ #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; }