I want to convert a time string to a char. I tried many things and some works but thats all not what I want. I want to get the current time in seconds and convert that into a char. I need a char so I can use the strcat() function who requeries a char. Any suggestions?
I think he uses something like asctime which returns the tm structure as an formatted cz... why don“t you assign your char* (since it is '\0'-terminated) to an string and execute the find-function on it, to find the ' ' between the single parts, in it?...
Btw... if you want the current time in seconds (since 1970) there is some function like time() :P...
I already use the time() function. And that is what I want, I want to convert the time() into a char* but how? I haven't any code so far. Can somebody write a peice of code for me?