[c] how to return a char array from a function in C