I need the correct C code for this function string_length, to calculate the number of characters in a string and return the answer as an int (without counting the null terminator '\0').
Could anyone help me write this out?Code:int string_length( char str[ ] ) { }