Strings In Depth6 / 18
Up next

strcat

#include <stdio.h>
#include <string.h>

int main(void) {
    char buf[32] = "foo";
    strcat(buf, "bar");
    printf("%s\n", buf);
    return 0;
}
What you're solving

append onto existing text