mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix doc of an internal function: unicode_write_cstr()
This commit is contained in:
parent
6db1c40b37
commit
b429d3b09c
1 changed files with 3 additions and 2 deletions
|
@ -1640,8 +1640,9 @@ unicode_putchar(PyObject **p_unicode, Py_ssize_t *pos,
|
||||||
/* Copy a ASCII or latin1 char* string into a Python Unicode string.
|
/* Copy a ASCII or latin1 char* string into a Python Unicode string.
|
||||||
Return the length of the input string.
|
Return the length of the input string.
|
||||||
|
|
||||||
WARNING: Don't copy the terminating null character and don't check the
|
WARNING: The function doesn't copy the terminating null character and
|
||||||
maximum character (may write a latin1 character in an ASCII string). */
|
doesn't check the maximum character (may write a latin1 character in an
|
||||||
|
ASCII string). */
|
||||||
static Py_ssize_t
|
static Py_ssize_t
|
||||||
unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str)
|
unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue