mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:03:39 +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
|
|
@ -173,7 +173,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
/* ... and has ended here */
|
||||
|
||||
if(*line)
|
||||
*line++ = '\0'; /* zero terminate, we have a local copy of the data */
|
||||
*line++ = '\0'; /* null-terminate, we have a local copy of the data */
|
||||
|
||||
#ifdef DEBUG_CONFIG
|
||||
fprintf(stderr, "GOT: %s\n", option);
|
||||
|
|
@ -203,7 +203,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global)
|
|||
line++;
|
||||
|
||||
if(*line) {
|
||||
*line = '\0'; /* zero terminate */
|
||||
*line = '\0'; /* null-terminate */
|
||||
|
||||
/* to detect mistakes better, see if there's data following */
|
||||
line++;
|
||||
|
|
@ -329,7 +329,7 @@ static const char *unslashquote(const char *line, char *param)
|
|||
else
|
||||
*param++ = *line++;
|
||||
}
|
||||
*param = '\0'; /* always zero terminate */
|
||||
*param = '\0'; /* always null-terminate */
|
||||
return line;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue