summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_string.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-03-30 19:37:58 +0300
committerValentin Bartenev <vbart@nginx.com>2020-03-30 19:37:58 +0300
commit68c6b67ffc840c78eddd27a65e9bf1370aaf5631 (patch)
treee53b36a7d4f40976daf52fe7c644c2d311bbb83b /src/nxt_string.c
parent0935630cba069d6619e967404bb6c7c2a93fbe7e (diff)
downloadunit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.gz
unit-68c6b67ffc840c78eddd27a65e9bf1370aaf5631.tar.bz2
Configuration: support for rational numbers.
Diffstat (limited to 'src/nxt_string.c')
-rw-r--r--src/nxt_string.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nxt_string.c b/src/nxt_string.c
index 667146d6..54f96abc 100644
--- a/src/nxt_string.c
+++ b/src/nxt_string.c
@@ -110,6 +110,24 @@ nxt_memcpy_upcase(u_char *dst, const u_char *src, size_t length)
u_char *
+nxt_cpystr(u_char *dst, const u_char *src)
+{
+ for ( ;; ) {
+ *dst = *src;
+
+ if (*dst == '\0') {
+ break;
+ }
+
+ dst++;
+ src++;
+ }
+
+ return dst;
+}
+
+
+u_char *
nxt_cpystrn(u_char *dst, const u_char *src, size_t length)
{
if (length == 0) {