From 88059858552990be7542f8466cde5d45c627bfa1 Mon Sep 17 00:00:00 2001 From: luca0N! <63941044+luca0N@users.noreply.github.com> Date: Fri, 19 Jun 2020 11:12:21 -0300 Subject: [PATCH] Added comments --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index e529a7f..e990380 100644 --- a/main.c +++ b/main.c @@ -27,6 +27,7 @@ #include #include +// Prints the program license to the user. int printLicense(int full){ if (full == 0) { printf("%s\n", LICENSE); @@ -44,6 +45,7 @@ int printLicense(int full){ } } +// Gets the user defined directories void getAdditionalDirs(){ printf("%s\n", STR_FETCHING_ADD_DIRS); int dirs; @@ -51,7 +53,6 @@ void getAdditionalDirs(){ printf("%s %d\n", STR_DIR_COUNT, dirs); fflush(stdout); for(unsigned short x = 0; x < dirs; x++){ - // TODO: Tell if item is a directory. If so, then iterate through all items on it. char dirKey[7] = "Pasta"; char* intPtr = (x + 1) + '0'; strcat(dirKey, &intPtr); @@ -63,6 +64,7 @@ void getAdditionalDirs(){ } } +// Cleans a directory. void cleanDir(const char* path){ // Path with wildcard char wildPath[strlen(path) + 1];