Re: msvcrt: Implement strncat_s.
10 Nov
2010
10 Nov
'10
4:38 p.m.
Eryk Wieliczko <ewdevel(a)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(a)winehq.org
5515
Age (days ago)
5515
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard