msvcrt: Implement strncat_s.
Alexandre Julliard
julliard at winehq.org
Wed Nov 10 10:38:49 CST 2010
Eryk Wieliczko <ewdevel at gmail.com> writes:
> +int CDECL MSVCRT_strncat_s( char* dst, MSVCRT_size_t elem, const char* src, MSVCRT_size_t count )
> +{
> + MSVCRT_size_t i, j;
> + if(!dst) return MSVCRT_EINVAL;
> + if(elem == 0) return MSVCRT_EINVAL;
> + if(!src)
> + {
> + dst[0] = '\0';
> + return MSVCRT_EINVAL;
> + }
Again, you should be using the parameter checking macros.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list