Skip to content

Glossary: Rust in Practice

NUL

Also written: nul byte, NUL terminator

The zero byte that ends every C string. Rust strings have no such byte, so `CString::new` adds one and refuses text that already contains one.

Where the book teaches it

Related terms

CString and CStr