summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-09-01 23:43:50 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-09-01 23:43:50 (GMT)
commitc4eb765fc1c1fb90c9de90917e167d2e0f907b8d (patch)
tree722a2c02d53eb328a4ae9b660f89e1df41bc12dc /Objects/unicodeobject.c
parentf37ca3c8bebf6aedbdaf96368c709d5c25ca7002 (diff)
downloadcpython-c4eb765fc1c1fb90c9de90917e167d2e0f907b8d.zip
cpython-c4eb765fc1c1fb90c9de90917e167d2e0f907b8d.tar.gz
cpython-c4eb765fc1c1fb90c9de90917e167d2e0f907b8d.tar.bz2
Create Py_UNICODE_strcat() function
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9cabd11..95823ad 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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)
{