Gets a slice from a null-terminated string.
the null terminated string to slice.
A new slice over the string, stopping before the null terminator. If str is not null terminated the return value is undefined and likely corrupted.
See Implementation
Gets a slice from a null-terminated string.