mirror of
https://github.com/curl/curl.git
synced 2026-07-31 22:48:06 +03:00
terminology: call them null-terminated strings
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 Closes #5608
This commit is contained in:
parent
ff43fb6dec
commit
032e838b73
107 changed files with 139 additions and 139 deletions
|
|
@ -966,7 +966,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
if(*p) {
|
||||
/* if there's anything more than a plain decimal number */
|
||||
rc = sscanf(p, " - %6s", lrange);
|
||||
*p = 0; /* zero terminate to make str2unum() work below */
|
||||
*p = 0; /* null-terminate to make str2unum() work below */
|
||||
}
|
||||
else
|
||||
rc = 0;
|
||||
|
|
@ -1517,7 +1517,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
/* Automatic referer requested, this may be combined with a
|
||||
set initial one */
|
||||
config->autoreferer = TRUE;
|
||||
*ptr = 0; /* zero terminate here */
|
||||
*ptr = 0; /* null-terminate here */
|
||||
}
|
||||
else
|
||||
config->autoreferer = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue