buffet
This commit is contained in:
parent
73c5bf6d96
commit
c4bc6fada7
@ -42,9 +42,9 @@ struct tree* read_tree(int* counter){
|
||||
}
|
||||
if(*c == 1){
|
||||
r = fgets(buffer,50, stdin);
|
||||
//int x = strlen(buffer);
|
||||
// buffer[x-1]='\0';
|
||||
if(buffer[0] != '\n'){
|
||||
int x = strlen(buffer);
|
||||
buffer[x-1]='\0';
|
||||
if(buffer[0] != '\0'){
|
||||
printf("Chybna databaza\n");
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user