Added comments

This commit is contained in:
luca0N! 2020-06-19 11:12:21 -03:00
parent f0600c11d8
commit 8805985855
No known key found for this signature in database
GPG Key ID: 9F1B99B522287CAB
1 changed files with 3 additions and 1 deletions

4
main.c
View File

@ -27,6 +27,7 @@
#include <stdio.h>
#include <string.h>
// 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];