Browse - programming tips - visual c 2008 sprintf time tDate: 2010mar23 Language: C/C++ Q. How do I deal with time_t in an _snprintf() ? A. As of Visual Studio 2005, it is 64 bits so do: char buf[100]; time_t now; now = time(NULL); _snprintf(buf, sizeof(buf), "time=%I64d seconds", now);
Add a commentSign in to add a comment | Advertisements:
|