#include <string.h>
#include <sys/ioctl.h>
-#define BUFFER_SIZE 1024
+#define BUFFER_SIZE 4096
typedef int64_t size_sum_t;
+/********************************************************************/
+
size_sum_t file_or_dir_size(char *name) {
DIR *dir;
struct dirent *dir_e;
}
}
-
void print_sorted(struct file_with_size *root, int height) {
struct file_with_size *node;
struct file_with_size **nodes;
root = 0;
+ setlocale (LC_ALL, "");
+
if(argc > 1) {
for(k = 1; k < argc; k++) {
root = create(argv[k], root);