returning a string from a function

This is a discussion on returning a string from a function within the Linux Programming forums, part of the Platform Specific Boards category; howdy
i'm trying to figure iut how to return a string from a function. have i missed something in the ...

I'll give an advice. If you write a function that returns a value, no matter what kind of value is, you should NEVER use this function to print any text out on the screen. It's not healty for your program.