null character

(redirected from Terminating null character)
Also found in: Encyclopedia.

null character

n.
A data control character that fills computer time by adding nonsignificant zeros to a data sequence.
American Heritage® Dictionary of the English Language, Fifth Edition. Copyright © 2016 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company. All rights reserved.
References in periodicals archive ?
MAXWORD is defined to be 101 to allow room for a terminating null character. addword adds the word in buf to the table of words, and printwords(k) prints the words with the k largest frequencies.
This is accomplished by discarding characters up to the next occurence of a letter, then gathering up the letters into the argument buffer: int getword(buf, size) char *buf; int size; [ char *P; int c; p = buf; while ((c = getchar()) !=EOF) if (isletter(c)) [ do [ if (size > 1) [ *p++ = c; size--; ] c = getchar(); ] while (isletter(c)); *p = ' 0'; return p - buf; ] return EOF; ] size is compared with 1 to ensure that there is room for the terminating null character. isletter is a macro that tests for upper- or lowercase letters: #define isletter(c) (c >= 'a' && c<= 'z' c >= 'A' && c <= 'Z')