C/string.h/strlen — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Версия 14:20, 25 мая 2010

strlen: returns the string length

    
  
//Declaration:  size_t strlen(const char *str); 
//Return:       returns the string length. The null terminator is not counted. 

  
#include<string.h>
#include<stdio.h> 
int main(void){
   printf("%d", strlen("hello"));
}
         
/*
5*/