implemented why2_opendir

shit it works

no memery lekz

LET'S FUCKING GO
This commit is contained in:
Václav Šmejkal 2023-02-06 16:59:31 +01:00
parent bdd947fc64
commit 44941a1b05
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -59,7 +59,7 @@ why2_log_file why2_init_logger(char *directoryPath)
} }
//COUNT HOW MANY LOGS WERE GENERATED THIS DAY //COUNT HOW MANY LOGS WERE GENERATED THIS DAY
dir = opendir(directoryPath); dir = why2_opendir(directoryPath);
while ((entry = readdir(dir)) != NULL) while ((entry = readdir(dir)) != NULL)
{ {
if (entry -> d_type == DT_REG) if (entry -> d_type == DT_REG)
@ -101,7 +101,7 @@ why2_log_file why2_init_logger(char *directoryPath)
why2_deallocate(dateBuffer); why2_deallocate(dateBuffer);
why2_deallocate(latestBuffer); why2_deallocate(latestBuffer);
why2_deallocate(latestFilePath); why2_deallocate(latestFilePath);
closedir(dir); why2_deallocate(dir);
why2_reset_memory_identifier(); why2_reset_memory_identifier();