gb/gb_string_test.c

21 lines
515 B
C

/*
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 <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;
}