3
我知道我可以做到這一點,如果我有一個struct tm結構,但是如果我想用SYSTEMTIME做同樣的事情。我可以手動做到這一點,但只是想知道是否有這樣做的功能。是否有像asctime_s()這樣的函數可用於Windows中的SYSTEMTIME結構?
感謝
void PrintTimeSCII(struct tm *time)
{
char timebuf[26] = {0};
asctime_s(timebuf, 26, time);
printf("%s\n", timebuf);
}