Posts Null terminated and length prefixed strings
Post
Cancel

Null terminated and length prefixed strings

Null terminated strings (also called C strings) store a string as a sequence of characters terminated by a null character (). Notice that even though, taco is only 4 characters, it is necesary to allocate an extra byte for the null characer ().

https://ncona.com/2020/04/null-terminated-and-length-prefixed-strings/

origin - https://www.pipiscrew.com/2020/04/null-terminated-and-length-prefixed-strings/ null-terminated-and-length-prefixed-strings

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags