Skip to content
Snippets Groups Projects

Final commit

2 files
+ 38
15
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 10
8
@@ -63,7 +63,7 @@ Tree *handleString(char command[], Tree *tree)
break;
case 'x':
tree_delete(tree);
return NULL;
break;
default:
fprintf(stderr, "Invalid command string: %s\n", command);
break;
@@ -116,14 +116,16 @@ void check(char *command, Tree *tree)
{
fprintf(stderr, "Failed to parse check command\n");
}
Node *result = tree_find(tree, age, name);
if (result)
{
printf("y\n");
}
else
{
printf("n\n");
Node *result = tree_find(tree, age, name);
if (result)
{
printf("y\n");
}
else
{
printf("n\n");
}
}
}
Loading