#include <stdio.h> #include <string.h> int main(void) { char buf[32] = "foo"; strcat(buf, "bar"); printf("%s\n", buf); return 0; }
append onto existing text