- implement mbscspn mostly as a stub

- reimplement mktime
This commit is contained in:
Gerard Patel 2001-11-12 15:47:26 +00:00 committed by Alexandre Julliard
parent 7f7c6477d3
commit 3953614bbd
3 changed files with 28 additions and 2 deletions

View File

@ -71,6 +71,15 @@ int _mbscmp(const char *str, const char *cmp)
return strcmp(str, cmp); /* ASCII CP */
}
/*********************************************************************
* _mbscspn(MSVCRT.@)
*/
int _mbscspn(const char *str, const char *cmp)
{
FIXME("don't handle double character case\n");
return strcspn(str, cmp);
}
/*********************************************************************
* _mbsicmp(MSVCRT.@)
*/

View File

@ -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

View File

@ -32,6 +32,23 @@ char* msvcrt_get_current_time(char* out, const char* format)
return retval;
}
/**********************************************************************
* 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.@)
*/