#include #include #include char * alloc_build_string(const char *ss[]); int main() { const char *greets[] = {"hello", " world", " all", NULL}; char *greet = alloc_build_string(greets); char *greet2 = alloc_build_string((const char *[]){ "hello world", " all", NULL }); printf("%d\n", strcmp(greet, "hello world all")); printf("%d\n", strcmp(greet2, "hello world all")); free(greet); free(greet2); }