View Single Post
Old Mar 10th, 2006, 4:29 AM   #10
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Robert, in your first example you are returning local which is a string, but your function returns a pointer to a string.

In your second example you have it the other way around, you return str which is a pointer to a string, but your function returns a string.

Maybe you did that intentionally, I must have misunderstood it then.

EDIT: BTW, thank you for the history lesson.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates

Last edited by nnxion; Mar 10th, 2006 at 4:39 AM.
nnxion is offline   Reply With Quote