#include "str.h" #include "allocator.h" #include const struct allocator *ga = &stdlib_strict_heap_allocator; int main(int argc, const char **argv) { char *str; str = NULL; str = str_app(ga, NULL, str, "Something"); str = str_app(ga, NULL, str, " -- and more!"); printf("%s\n", str); ga->free(ga, str); }