There is such a simple function to get the length of the line.
int stringLength(char *string,int result){ if(*string == 0){return result;} return stringLength(string+1,++result); } To return the result, I use another parameter that I need to pass in the call.
int length = 0; length = stringLength(string,length); It is possible to make more beautiful, i.e. for example, a parameter that defaults to 0, and will not need to be specified when calling a function?