diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-25 11:38:25 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-25 11:45:17 +0200 |
commit | d6c67eae703575387b1d5be5e9cd110d04914cab (patch) | |
tree | beef06c929271c248242e78e179e5d6d0f2957f9 /lib/urlapi.c | |
parent | 8acfb932ef9be1209491bc68d38445c4d6eaab6e (diff) | |
download | curl-d6c67eae703575387b1d5be5e9cd110d04914cab.tar.gz |
terminology: call them null-terminated stringsbagder/null-terminate
Updated terminology in docs, comments and phrases to refer to C strings
as "null-terminated". Done to unify with how most other C oriented docs
refer of them and what users in general seem to prefer (based on a
single highly unscientific poll on twitter).
Reported-by: coinhubs on github
Fixes #5598
Diffstat (limited to 'lib/urlapi.c')
-rw-r--r-- | lib/urlapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/urlapi.c b/lib/urlapi.c index 398364b34..acbfb8287 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -225,7 +225,7 @@ static void strcpy_url(char *output, const char *url, bool relative) break; } } - *optr = 0; /* zero terminate output buffer */ + *optr = 0; /* null-terminate output buffer */ } @@ -584,7 +584,7 @@ static CURLUcode junkscan(const char *part) 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x7f, - 0x00 /* zero terminate */ + 0x00 /* null-terminate */ }; size_t n = strlen(part); size_t nfine = strcspn(part, badbytes); @@ -1398,7 +1398,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what, i = (const unsigned char *)part; for(o = enc; *i; ++o, ++i) *o = (*i == ' ') ? '+' : *i; - *o = 0; /* zero terminate */ + *o = 0; /* null-terminate */ part = strdup(enc); if(!part) { free(enc); @@ -1422,7 +1422,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what, o += 3; } } - *o = 0; /* zero terminate */ + *o = 0; /* null-terminate */ newp = enc; if(free_part) free((char *)part); |