Eryk Wieliczko ewdevel@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.