std::strlen
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <cstring>
|
||
| size_t strlen( char *str ); |
||
。
返回给定的字节字符串的长度.
Original:
Returns the length of the given byte string.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。参数。
| str | - | 。指针null结尾的字节串进行审查。
Original: pointer to the null-terminated byte string to be examined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
===。 返回值。===
。 null结尾的字符串的长度
str.Original:
The length of the null-terminated string
str.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 。为例。
| 本节是不完整的 原因: no example |
[编辑] 。另请参阅。
| C documentation for strlen
|