X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fmsvcrt%2Ftime%2Fstrtime.c;fp=lib%2Fmsvcrt%2Ftime%2Fstrtime.c;h=0a35b885bf78c53234523b756a24a316ec198a5e;hp=7a64c05cf2f619d1d6f915907169a130257c298f;hb=e3ed2d773259cc445c7ff8181ebd934931365328;hpb=d378c68f5a9bb25c9e671dacd482d2e25d211df3 diff --git a/lib/msvcrt/time/strtime.c b/lib/msvcrt/time/strtime.c index 7a64c05..0a35b88 100644 --- a/lib/msvcrt/time/strtime.c +++ b/lib/msvcrt/time/strtime.c @@ -12,36 +12,19 @@ #include #include -char *_strtime(char* buf) -{ - time_t t; - struct tm *d; - char *dt = (char *)buf; - - if ( buf == NULL ) - { - __set_errno(EINVAL); - return NULL; - } - t = time(NULL); - d = localtime(&t); - sprintf(dt,"%d:%d:%d",d->tm_hour,d->tm_min,d->tm_sec); - return dt; -} -wchar_t *_wstrtime(wchar_t* buf) +char* _strtime(char* buf) { - time_t t; - struct tm *d; - wchar_t *dt = (wchar_t *)buf; + time_t t; + struct tm *d; + char* dt = (char*)buf; - if ( buf == NULL ) - { - __set_errno(EINVAL); - return NULL; + if ( buf == NULL ) { + __set_errno(EINVAL); + return NULL; } - t = time(NULL); - d = localtime(&t); - swprintf(dt,L"%d:%d:%d",d->tm_hour,d->tm_min,d->tm_sec); - return dt; + t = time(NULL); + d = localtime(&t); + sprintf(dt,"%d:%d:%d",d->tm_hour,d->tm_min,d->tm_sec); + return dt; }