So this code is invalid according to you (not complete):
Yes, I'm sure it CAN be rewritten to use const wherever needed, but I can certainly see how you would want to do similar work in a function SOMETIMES.
char *res = "Unknown";
int somestuff = somefunc();
sprintf(buffer, "Result = %d", somestuff);
res = buffer;
if ((somestuff = someotherfunc()))
strcat(res, " extra stuff");