update cv3

This commit is contained in:
Ivan Leichenko 2024-10-14 15:44:28 +02:00
parent 44d1e60eb3
commit 4a2c5d12a7

View File

@ -81,6 +81,11 @@ int main(int argc, char const *argv[])
{ {
break; break;
} }
if(buf[0] == '.')
{
printf("bad input\n");
return 0;
}
for (int i = 0; i < strcspn(buf, "\n"); i++) for (int i = 0; i < strcspn(buf, "\n"); i++)
{ {
if(isalpha(buf[i]) != 0) if(isalpha(buf[i]) != 0)