nxt_string.c (1431:fe30a27f21ba) nxt_string.c (1439:32578e837322)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 96 unchanged lines hidden (view full) ---

105 c = *src++;
106 *dst++ = nxt_upcase(c);
107 length--;
108 }
109}
110
111
112u_char *
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 96 unchanged lines hidden (view full) ---

105 c = *src++;
106 *dst++ = nxt_upcase(c);
107 length--;
108 }
109}
110
111
112u_char *
113nxt_cpystr(u_char *dst, const u_char *src)
114{
115 for ( ;; ) {
116 *dst = *src;
117
118 if (*dst == '\0') {
119 break;
120 }
121
122 dst++;
123 src++;
124 }
125
126 return dst;
127}
128
129
130u_char *
113nxt_cpystrn(u_char *dst, const u_char *src, size_t length)
114{
115 if (length == 0) {
116 return dst;
117 }
118
119 while (--length != 0) {
120 *dst = *src;

--- 568 unchanged lines hidden ---
131nxt_cpystrn(u_char *dst, const u_char *src, size_t length)
132{
133 if (length == 0) {
134 return dst;
135 }
136
137 while (--length != 0) {
138 *dst = *src;

--- 568 unchanged lines hidden ---