Hi!!
I'm trying to return a string of charachters from a function.
bufferF in Fdato() function prints the correct date on the screen.
I need this date to be avalible outside the function.
temp only writes strange charachters.
Instead of going through all of this, (which I am not sure if you are asking this specifically for a school project) you could always write the time to the string stream. Therefore it would be available outside your function.
#include <sstream>
Look this up, should simplify your whole program a good bit. Writing to the S stream will give you the option of using it outside your function. Passing pointers is never fun!!