Cstring
A C-style string is a sequence of characters stored in a contiguous memory buffer and terminated by a null character (NUL, '\0'). In C there is no distinct string type; strings are represented as arrays of char. A C string ends at the first null byte, which marks its end for functions that manipulate strings.
Standard library functions for C strings are defined in string.h and include: strlen to compute length, strcpy/strncpy
Because C strings do not perform bounds checking, unsafe use can cause buffer overflows, reading past the
In C++, the same functions are available in <cstring> and reside in the std namespace. C++ also