mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
Create Py_UNICODE_strcat() function
This commit is contained in:
parent
f37ca3c8be
commit
c4eb765fc1
2 changed files with 12 additions and 0 deletions
|
@ -9951,6 +9951,15 @@ Py_UNICODE_strncpy(Py_UNICODE *s1, const Py_UNICODE *s2, size_t n)
|
|||
return s1;
|
||||
}
|
||||
|
||||
Py_UNICODE*
|
||||
Py_UNICODE_strcat(Py_UNICODE *s1, const Py_UNICODE *s2)
|
||||
{
|
||||
Py_UNICODE *u1 = s1;
|
||||
u1 += Py_UNICODE_strlen(u1);
|
||||
Py_UNICODE_strcpy(u1, s2);
|
||||
return s1;
|
||||
}
|
||||
|
||||
int
|
||||
Py_UNICODE_strcmp(const Py_UNICODE *s1, const Py_UNICODE *s2)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue