return string from c function code example Example: how to make a function return a string c const char* myName() { char *name = "Flavio"; return name; }