User Tools

Site Tools


c:string.h:strlen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:string.h:strlen [2013/01/22 22:02]
127.0.0.1 external edit
c:string.h:strlen [2014/04/05 05:08] (current)
188.113.222.212
Line 13: Line 13:
 { {
  
-char ss[40] = "hello world"; +  char ss[20] = "hello world"; 
-int length = strlen(ss); +  int length = strlen(ss); 
-int i = 0+  int i; 
-   printf ("strlen is %i\n", length); +   
-     +  printf ("strlen is %i\n", length); 
-    for ( i = 0; i < length ; ++ i ) { +   
-       printf ("iam at char count %i\n", i); +  for ( i = 0; i < length ; ++ i ) 
-     } +    printf ("iam at char count %i\n", i); 
-  +   
-return 0;    +  return 0;    
 } }
 </code> </code>
advertising
c/string.h/strlen.txt · Last modified: 2014/04/05 05:08 by 188.113.222.212

Impressum Datenschutz