strlen
From cppreference.com
                    
                                        
                    
                    
                                                            
                    |   Defined in header  
<string.h>
  | 
||
|   size_t strlen( const char *str ); 
 | 
||
Returns the length of the given byte string.
The null character is excluded from the length.
Contents | 
[edit] Parameters
| str | - | pointer to the null-terminated byte string to be examined | 
[edit] Return value
The length of the null-terminated string str.
[edit] Example
Run this code
Output:
without null character: 41 with null character: 42
[edit] See also
|   
C++ documentation for strlen
 
 |