Generation

generate functionSun, 11 Jun 2023

• Escribe una función que cuente el número de caracteres de un string y que devuelva el número encontrado. • El prototipo de la función deberá ser el siguiente: int ft_strlen(char *str);

int ft_strlen(char *str) { int i; i = 0; while (str[i] != '\0') { i++; } return i; }

Want to kickstart your project?Use the new AI Studio to create your code