upd cv3
This commit is contained in:
parent
e05fd36e76
commit
44d1e60eb3
@ -81,11 +81,15 @@ int main(int argc, char const *argv[])
|
||||
{
|
||||
break;
|
||||
}
|
||||
if(isalpha(buf) != 0)
|
||||
for (int i = 0; i < strcspn(buf, "\n"); i++)
|
||||
{
|
||||
if(isalpha(buf[i]) != 0)
|
||||
{
|
||||
printf("bad input\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
buf[strcspn(buf, "\n")] = '\0';
|
||||
if(!check_op(buf[0]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user