Files
system-programming/exercises/tree/main.c
Fabio Scotto di Santolo dd53e83af6 Reformat code
2025-07-04 10:39:07 +02:00

16 lines
267 B
C

#include "tree.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
const char *path = (argc > 1) ? argv[1] : ".";
if (print_tree(path, 0) == -1) {
perror("Error traversing directory");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}