I have a function that returns a pointer....I have labeled it with and without "static". In both cases when the function gets called again I lose the value of the pointer in the previous call, even when I declare a unique variable in main for the earlier calls...The function lives in another file other than main. Can someone tell me how to pass this pointer back to main such that the value of each call doesn't get updated overwriting the old return values?
Thanks