mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:57:22 +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
|
|
@ -774,7 +774,7 @@ enum curl_khtype {
|
|||
};
|
||||
|
||||
struct curl_khkey {
|
||||
const char *key; /* points to a zero-terminated string encoded with base64
|
||||
const char *key; /* points to a null-terminated string encoded with base64
|
||||
if len is zero, otherwise to the "raw" data */
|
||||
size_t len;
|
||||
enum curl_khtype keytype;
|
||||
|
|
@ -1446,7 +1446,7 @@ typedef enum {
|
|||
/* 132 OBSOLETE. Gone in 7.16.0 */
|
||||
/* 133 OBSOLETE. Gone in 7.16.0 */
|
||||
|
||||
/* zero terminated string for pass on to the FTP server when asked for
|
||||
/* null-terminated string for pass on to the FTP server when asked for
|
||||
"account" info */
|
||||
CURLOPT(CURLOPT_FTP_ACCOUNT, CURLOPTTYPE_STRINGPOINT, 134),
|
||||
|
||||
|
|
@ -2118,7 +2118,7 @@ typedef enum {
|
|||
CURL_TIMECOND_LAST
|
||||
} curl_TimeCond;
|
||||
|
||||
/* Special size_t value signaling a zero-terminated string. */
|
||||
/* Special size_t value signaling a null-terminated string. */
|
||||
#define CURL_ZERO_TERMINATED ((size_t) -1)
|
||||
|
||||
/* curl_strequal() and curl_strnequal() are subject for removal in a future
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
|
|||
* value into the equivalent human readable error string. This is
|
||||
* useful for printing meaningful error messages.
|
||||
*
|
||||
* Returns: A pointer to a zero-terminated error message.
|
||||
* Returns: A pointer to a null-terminated error message.
|
||||
*/
|
||||
CURL_EXTERN const char *curl_multi_strerror(CURLMcode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue