Really struggling to solve this error, I think it is to do with declaring isalpha incorrectly but thats all I can think of, any advice would be greatly appreciated!
Error
readability.c:5:18: error expected ')'
int isalpha(char c);
^
readability.c:5:5: note: to match this '('
int isalpha(char c);
^
/usr/include/ctype.h:190:31 note: expanded from macro 'isalpha'
Code
`int isalpha(char c);
int main(void);
{ int length = 0;
string text = get_string("text: ");
for (int i = 0; text[i] != '\0'; i++)
{
if (isalpha(text[i]))
{
length++;
}
}
}`