compare 2 different directory trees with the same or similar content, would using a FILE * pointer thing be the best choice? Also would it be slow if you are doing it for a lot of files?
The FILE pointer can be used to read and write into a file. Since you're talking about directory trees, you'll need to use low level OS API's
You can hash the content and check if that’s the same
I think it was dirent.h for interfacing with gnu directory stream
Обсуждают сегодня