The null character (also null terminator) is a control character with the value zero.[1][2][3][4]
It is present in many character sets, including those defined by the Baudot and ITA2 codes, ISO/IEC 646 (or ASCII), the C0 control code, the Universal Coded Character Set (or Unicode), and EBCDIC. It is available in nearly all mainstream programming languages.[5] It is often abbreviated as NUL (or NULL, though in some contexts that term is used for the null pointer). In 8-bit codes, it is known as a null byte.
The original meaning of this character was like NOP—when sent to a printer or a terminal, it has no effect (some terminals, however, incorrectly display it as space). When electromechanical teleprinters were used as computer output devices, one or more null characters were sent at the end of each printed line to allow time for the mechanism to return to the first printing position on the next line.[citation needed] On punched tape, the character is represented with no holes at all, so a new unpunched tape is initially filled with null characters, and often text could be inserted at a reserved space of null characters by punching the new characters into the tape over the nulls.
Today the character has much more significance in the programming language C and its derivatives and in many data formats, where it serves as a reserved character used to signify the end of a string,[6] often called a null-terminated string.[7] This allows the string to be any length with only the overhead of one byte; the alternative of storing a count requires either a string length limit of 255 or an overhead of more than one byte (there are other advantages/disadvantages described in the null-terminated string article).
^ASCII format for Network Interchange. IETF. sec. 5.2. doi:10.17487/RFC0020. RFC 20. NUL (Null): The all-zeros character which may serve to accomplish time fill and media fill.
^"The set of control characters of the ISO 646" (PDF). Secretariat ISO/TC 97/SC 2. 1975-12-01. p. 4.4. Archived from the original (PDF) on 2014-05-12. Position: 0/0, Name: Null, Abbreviation: Nul
^"Unicode Character 'NULL' (U+0000)". Retrieved 2018-10-20.
^"A byte with all bits set to 0, called the null character, shall exist in the basic execution character set; it is used to terminate a character string literal." — ANSI/ISO 9899:1990 (the ANSI C standard), section 5.2.1
^"A string is a contiguous sequence of characters terminated by and including the first null character" — ANSI/ISO 9899:1990 (the ANSI C standard), section 7.1.1
^Working Draft, Standard for Programming Language C++(PDF) (ISO 14882 standard working draft), ISO/IEC, 28 February 2011, p. 427, N3242=11-0012, retrieved 27 February 2013, A null-terminated byte string, or NTBS, is a character sequence whose highest-addressed element with defined content has the value zero (the terminating null character); no other element in the sequence has the value zero.
The nullcharacter (also null terminator) is a control character with the value zero. It is present in many character sets, including those defined by...
Look up Null, null, a-null, or núll in Wiktionary, the free dictionary. Null may refer to: Nuller, an optical tool using interferometry to block certain...
up null or ␀ in Wiktionary, the free dictionary. Null symbol may refer to: Nullcharacter, U+0000, U+2400 "symbol for null" (␀), a single-character glyph...
example, the nullcharacter (U+0000 NULL) is used in C-programming application environments to indicate the end of a string of characters. In this way...
\v.) \0 nullcharacter (U+0000 NULL) (only if the next character is not a decimal digit; else it is an octal escape sequence) \xFF character represented...
a null train reporting number or headcode a suffix to a time indicating Coordinated Universal Time, rather than a local time zone the nullcharacter Midnight...
The byte-order mark (BOM) is a particular usage of the special Unicode character code, U+FEFF ZERO WIDTH NO-BREAK SPACE, whose appearance as a magic number...
length of the first string by checking each character to see whether it is the terminating nullcharacter. Next, the second string is copied to the end...
non-alphabetic scripts. Some file systems allow even unprintable characters, including Bell, Null, Return and Linefeed, to be part of a filename,[citation needed]...
for each chunk. The "key" must be between one and 79 characters long. Separator is a nullcharacter. The "value" can be any length, including zero up to...
two function calls above. If the argument supplied for this parameter is NULL, the default is an empty string, "". Under Unix, many different configuration...
character reference refers to a character by its Universal Character Set/Unicode code point, and a character entity reference refers to a character by...
the next available input character, or EOF if there is no more available. (The ASCII character code defines a nullcharacter for this purpose, but the...
concatenation. Two string literals in a row are pasted together (with no nullcharacter in the middle) to make one combined string literal. This addition to...
end-of-transmission character (EOT), also known as control-D, to indicate the end of a data stream. In the C programming language, and in Unix conventions, the null character...
the null device is a device file that discards all data written to it but reports that the write operation succeeded. This device is called /dev/null on...
encountered in day-to-day use. Character An XML document is a string of characters. Every legal Unicode character (except Null) may appear in an (1.1) XML...
with a nullcharacter (U+0000), or the correct encoding is actually UTF-32LE, in which the full 4-byte sequence FF FE 00 00 is one character, the BOM...
that the canaries are built of null terminators, CR, LF, and FF. As a result, the attacker must write a nullcharacter before writing the return address...
common sentinel values and their uses: Nullcharacter for indicating the end of a null-terminated string. Null pointer for indicating the end of a linked...