Returns the length of a C string.
unsafe fn strlen(ptr: *const u8) -> usize
| Name | Description |
|---|---|
| ptr | A pointer to the string. |
Returns the length of the string excluding the terminating null byte.
If the argument does not point to a null terminated string, the behavior is undefined.