For calculating asctime() do nothing. It returns a pointer to the character (so called ASCiiZ) string result in static storage, e.g.:
Code:
"Wed Apr 14 08:35:52 2004\n"
Now you may print the string - that's all (don't forget about newline char in the string)...
It is a C/C++ Standard library member (comes from Unix world)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.