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:
Daniel Stenberg 2025-05-30 11:20:05 +02:00
parent 54834b4ad3
commit fe81a80ae7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
39 changed files with 69 additions and 70 deletions

View file

@ -135,7 +135,7 @@
*
d len s 10u 0
*
len = %scan(X'00': string: 1: length); // Limit to zero-terminated string
len = %scan(X'00': string: 1: length); // Limit to null-terminated string
if len = 0;
len = length + 1;
endif;

View file

@ -118,7 +118,7 @@
*
d len s 10u 0
*
len = %scan(X'00': string: 1: length); // Limit to zero-terminated string
len = %scan(X'00': string: 1: length); // Limit to null-terminated string
if len = 0;
len = length + 1;
endif;

View file

@ -148,7 +148,7 @@
*
d len s 10u 0
*
len = %scan(X'00': string: 1: length); // Limit to zero-terminated string
len = %scan(X'00': string: 1: length); // Limit to null-terminated string
if len = 0;
len = length + 1;
endif;

View file

@ -97,7 +97,7 @@
*
d len s 10u 0
*
c eval len = %scan(X'00': string: 1: length) Limit 0-terminated
c eval len = %scan(X'00': string: 1: length) Limit null-terminated
c if len = 0
c eval len = length + 1
c endif

View file

@ -97,7 +97,7 @@
dcl-s len uns(10);
len = %scan(X'00': string: 1: length); // Limit to zero-terminated string
len = %scan(X'00': string: 1: length); // Limit to null-terminated string
if len = 0;
len = length + 1;
endif;

View file

@ -228,7 +228,7 @@
d addrdiff s 10i 0
d len s 10u 0
*
len = %scan(X'00': string: 1: length); // Limit to zero-terminated string
len = %scan(X'00': string: 1: length); // Limit to null-terminated string
if len = 0;
len = length + 1;
endif;

View file

@ -131,7 +131,7 @@ static int sys_trnlnm(const char *logname,
if($VMS_STATUS_SUCCESS(status)) {
/* Null terminate and return the string */
/* Null-terminate and return the string */
/*--------------------------------------*/
value[result] = '\0';
}