Commit 3953614b authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

- implement mbscspn mostly as a stub

- reimplement mktime
parent 7f7c6477
......@@ -72,6 +72,15 @@ int _mbscmp(const char *str, const char *cmp)
}
/*********************************************************************
* _mbscspn(MSVCRT.@)
*/
int _mbscspn(const char *str, const char *cmp)
{
FIXME("don't handle double character case\n");
return strcspn(str, cmp);
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
*/
int _mbsicmp(const char *str, const char *cmp)
......
......@@ -357,7 +357,7 @@ debug_channels (msvcrt)
@ cdecl _mbscmp(str str) _mbscmp
@ stub _mbscoll #(str str)
@ cdecl _mbscpy(ptr str) strcpy
@ stub _mbscspn #(str str)
@ cdecl _mbscspn (str str) _mbscspn
@ cdecl _mbsdec(ptr ptr) _mbsdec
@ cdecl _mbsdup(str) _strdup
@ cdecl _mbsicmp(str str) _mbsicmp
......@@ -675,7 +675,7 @@ debug_channels (msvcrt)
@ cdecl memcpy(ptr ptr long) memcpy
@ cdecl memmove(ptr ptr long) memmove
@ cdecl memset(ptr long long) memset
@ cdecl mktime(ptr) mktime
@ cdecl mktime(ptr) MSVCRT_mktime
@ cdecl modf(double ptr) modf
@ cdecl perror(str) MSVCRT_perror
@ cdecl pow(double double) pow
......
......@@ -33,6 +33,23 @@ char* msvcrt_get_current_time(char* out, const char* format)
}
/**********************************************************************
* mktime (MSVCRT.@)
*/
MSVCRT_time_t MSVCRT_mktime(struct MSVCRT_tm *t)
{
struct tm aa;
aa.tm_sec = t->tm_sec;
aa.tm_min = t->tm_min;
aa.tm_hour = t->tm_hour;
aa.tm_mday = t->tm_mday;
aa.tm_mon = t->tm_mon;
aa.tm_year = t->tm_year;
aa.tm_isdst = t->tm_isdst;
return mktime(&aa);
}
/**********************************************************************
* _strdate (MSVCRT.@)
*/
char* _strdate(char* date)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment