Renamed nxt_str_copy() to nxt_str_cstrz().

This commit is contained in:
Valentin Bartenev
2017-08-16 15:43:02 +03:00
parent 23d38a5794
commit 2dd8048bf9
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src)
/*
* nxt_str_copy() creates a C style zero-terminated copy of a source
* nxt_str_cstrz() creates a C style zero-terminated copy of a source
* nxt_str_t. The function is intended to create strings suitable
* for libc and kernel interfaces so result is pointer to char instead
* of u_char to minimize casts. The copy is aligned to 2 bytes thus
@@ -69,7 +69,7 @@ nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst, const nxt_str_t *src)
*/
char *
nxt_str_copy(nxt_mp_t *mp, const nxt_str_t *src)
nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src)
{
char *p, *dst;

View File

@@ -136,7 +136,7 @@ nxt_str_null(str) \
NXT_EXPORT nxt_str_t *nxt_str_alloc(nxt_mp_t *mp, size_t length);
NXT_EXPORT nxt_str_t *nxt_str_dup(nxt_mp_t *mp, nxt_str_t *dst,
const nxt_str_t *src);
NXT_EXPORT char *nxt_str_copy(nxt_mp_t *mp, const nxt_str_t *src);
NXT_EXPORT char *nxt_str_cstrz(nxt_mp_t *mp, const nxt_str_t *src);
#define \