msvcrt: Implement _asctime_s and _wasctime_s.

Alexandre Julliard julliard at winehq.org
Thu Nov 4 06:21:22 CDT 2010


Eryk Wieliczko <ewdevel at 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 at winehq.org



More information about the wine-devel mailing list