String help!

Ue-Li Pen upen at watarts.UUCP
Wed Feb 20 01:28:49 AEST 1985


Question:

Is it allowed & portable to use the construct:

char* foo(){

return("foobar");    

}

This would hopefully return a pointer to the string "foobar"..

If it isn't.. should it be allowed? It would seem reasonable.



More information about the Comp.lang.c mailing list