Re: msvcrt: Implement _asctime_s and _wasctime_s.
4 Nov
2010
4 Nov
'10
11:21 a.m.
Eryk Wieliczko <ewdevel(a)gmail.com> writes:
+MSVCRT_long CDECL MSVCRT_asctime_s(char *output, MSVCRT_size_t max, const struct MSVCRT_tm *mstm) +{ + char *buffer; + MSVCRT_size_t bufflen; + + if (output && max > 0) + output[0] = '\0'; + if (!output) + { + *MSVCRT__errno() = MSVCRT_EINVAL; + return MSVCRT_EINVAL; + }
You probably want to use the new parameter checking macros. Also the first check is redundant. -- Alexandre Julliard julliard(a)winehq.org
5518
Age (days ago)
5518
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard