你能否修复这段代码中的错误我得到这个错误 error C2040: 'tmFunc' : 'char *()'
的间接级别不同'int ()'
#include<stdio.h>
main()
{
char *tmStamp=tmFunc();
}
char *tmFunc()
{
char tmbuf[30];
struct tm *tm;
time_t ltime; /* calendar time */
ltime=time(NULL); /* get current cal time */
tm = localtime(<ime);
sprintf (tmbuf, "[%04d/%02d/%02d %02d:%02d:%02d]", tm->tm_year + 1900,
tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
return(tmbuf);
}