I'm trying to create a program to find the length of string but the function name and char address seemed to always return an error
#ifndef LENGTH_STRING
#define LENGTH_STRING
#include<stdio.h>
int lengthString(char*){
int i;
i = 0;
while ((*(char + i)) != '\0'){
i += 1;
}
}
#endif
Error in function name: unnamed prototype parameters not allowed when body is present error in + sign: expected a ")" Error before ! sign: Expected an expression