Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
issue happening if the program fails during fill_lfc, it will call free_lfc, but because we haven set the 'next' node to NULL, we segfault.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
improved one later
|
|
|
|
|
|
|
|
|
|
|
|
|
|
functionality
|
|
also divide some functions to make everything a bit easier to work with
|
|
|
|
good enough for today though. This is kind of a proof of concept though so ill probably change it tomorrow. It's not perfect.
|
|
|
|
|
|
i am REALLY stupid and was calculating the remaining size for concat_str wrong all along
|
|
|
|
complexity
|
|
|
|
|
|
|
|
|
|
the trashed filenames as well
|
|
|
|
|
|
|
|
think about how i will handle duplicate files with the same names
|
|
accordingly. It's definitely a lot cleaner now.
|
|
|
|
|
|
I think ill have to make some more structs and functions for a cleaner way of handling this
|
|
test on it and it seems to work. I will have to implement some sort of loop to handle multiple files
|
|
remove 4 of the malloc's
|
|
I think it works? Testing will probably prove me wrong but ill deal with it when it happens.
|
|
directly and moved to using concat_str for all those cases. Also added alot more free_ipi to all of the cases where we exit because of some error
|
|
|
|
|
|
|
|
|
|
directories exist
|
|
|