msvcrt: Copy strcat implementation from ntdll.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2020-07-22 11:10:35 +02:00 committed by Alexandre Julliard
parent 41a5da9b76
commit f676355366
12 changed files with 22 additions and 11 deletions

View File

@ -463,7 +463,7 @@
@ cdecl sqrt(double) MSVCRT_sqrt @ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp
@ cdecl strcoll(str str) MSVCRT_strcoll @ cdecl strcoll(str str) MSVCRT_strcoll

View File

@ -1795,7 +1795,7 @@
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ varargs sscanf_s(str str) MSVCRT_sscanf_s @ varargs sscanf_s(str str) MSVCRT_sscanf_s
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp

View File

@ -2153,7 +2153,7 @@
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ varargs sscanf_s(str str) MSVCRT_sscanf_s @ varargs sscanf_s(str str) MSVCRT_sscanf_s
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp

View File

@ -2363,7 +2363,7 @@
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ varargs sscanf_s(str str) MSVCRT_sscanf_s @ varargs sscanf_s(str str) MSVCRT_sscanf_s
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp

View File

@ -809,7 +809,7 @@
@ cdecl sqrt(double) MSVCRT_sqrt @ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp
@ cdecl strcoll(str str) MSVCRT_strcoll @ cdecl strcoll(str str) MSVCRT_strcoll

View File

@ -805,7 +805,7 @@
@ cdecl sqrt(double) MSVCRT_sqrt @ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp
@ cdecl strcoll(str str) MSVCRT_strcoll @ cdecl strcoll(str str) MSVCRT_strcoll

View File

@ -1475,7 +1475,7 @@
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ varargs sscanf_s(str str) MSVCRT_sscanf_s @ varargs sscanf_s(str str) MSVCRT_sscanf_s
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp

View File

@ -1448,7 +1448,7 @@
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ varargs sscanf_s(str str) MSVCRT_sscanf_s @ varargs sscanf_s(str str) MSVCRT_sscanf_s
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp

View File

@ -1417,7 +1417,7 @@
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ varargs sscanf_s(str str) MSVCRT_sscanf_s @ varargs sscanf_s(str str) MSVCRT_sscanf_s
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp

View File

@ -1116,6 +1116,17 @@ int CDECL MSVCRT_strcat_s( char* dst, MSVCRT_size_t elem, const char* src )
return MSVCRT_ERANGE; return MSVCRT_ERANGE;
} }
/*********************************************************************
* strcat (MSVCRT.@)
*/
char* __cdecl MSVCRT_strcat( char *dst, const char *src )
{
char *d = dst;
while (*d) d++;
while ((*d++ = *src++));
return dst;
}
/********************************************************************* /*********************************************************************
* strncat_s (MSVCRT.@) * strncat_s (MSVCRT.@)
*/ */

View File

@ -761,7 +761,7 @@
@ cdecl sqrt(double) MSVCRT_sqrt @ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf @ varargs sscanf(str str) MSVCRT_sscanf
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp
@ cdecl strcoll(str str) MSVCRT_strcoll @ cdecl strcoll(str str) MSVCRT_strcoll

View File

@ -2494,7 +2494,7 @@
@ cdecl sqrt(double) MSVCRT_sqrt @ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl -arch=!i386 sqrtf(float) MSVCRT_sqrtf @ cdecl -arch=!i386 sqrtf(float) MSVCRT_sqrtf
@ cdecl srand(long) MSVCRT_srand @ cdecl srand(long) MSVCRT_srand
@ cdecl strcat(str str) ntdll.strcat @ cdecl strcat(str str) MSVCRT_strcat
@ cdecl strcat_s(str long str) MSVCRT_strcat_s @ cdecl strcat_s(str long str) MSVCRT_strcat_s
@ cdecl strchr(str long) MSVCRT_strchr @ cdecl strchr(str long) MSVCRT_strchr
@ cdecl strcmp(str str) MSVCRT_strcmp @ cdecl strcmp(str str) MSVCRT_strcmp