The return value of ctime_s is of type errno_t not a string
Code:errno_t err = ctime_s(buf, sizeof(buf), &timer); if (err == 0) printf_s("Local time is: %s", buf);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |