C Tutorial/string.h/strlen — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:32, 25 мая 2010
strlen
Item Value Header file string.h Declaration size_t strlen(const char *str); Return returns the string length. The null terminator is not counted.
<source lang="cpp">#include<string.h>
- include<stdio.h>
int main(void){
printf("%d", strlen("hello"));
}</source>