mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:33:39 +03:00
spelling: call it null-terminate consistently
With a dash, using two Ls. Also for different forms of the word.
Use NULL in all uppercase if it means a zero pointer.
Follow-up to 307b7543ea
Closes #17489
This commit is contained in:
parent
54834b4ad3
commit
fe81a80ae7
39 changed files with 69 additions and 70 deletions
|
|
@ -85,7 +85,7 @@ char Curl_raw_tolower(char in)
|
|||
/* Copy an upper case version of the string from src to dest. The
|
||||
* strings may overlap. No more than n characters of the string are copied
|
||||
* (including any NUL) and the destination string will NOT be
|
||||
* NUL-terminated if that limit is reached.
|
||||
* null-terminated if that limit is reached.
|
||||
*/
|
||||
void Curl_strntoupper(char *dest, const char *src, size_t n)
|
||||
{
|
||||
|
|
@ -100,7 +100,7 @@ void Curl_strntoupper(char *dest, const char *src, size_t n)
|
|||
/* Copy a lower case version of the string from src to dest. The
|
||||
* strings may overlap. No more than n characters of the string are copied
|
||||
* (including any NUL) and the destination string will NOT be
|
||||
* NUL-terminated if that limit is reached.
|
||||
* null-terminated if that limit is reached.
|
||||
*/
|
||||
void Curl_strntolower(char *dest, const char *src, size_t n)
|
||||
{
|
||||
|
|
@ -112,7 +112,7 @@ void Curl_strntolower(char *dest, const char *src, size_t n)
|
|||
} while(*src++ && --n);
|
||||
}
|
||||
|
||||
/* Compare case-sensitive NUL-terminated strings, taking care of possible
|
||||
/* Compare case-sensitive null-terminated strings, taking care of possible
|
||||
* null pointers. Return true if arguments match.
|
||||
*/
|
||||
bool Curl_safecmp(char *a, char *b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue