Advancing along here.

This commit is contained in:
Brad Arant committed 2020-12-09 09:43:52 -08:00
1 parent 5bd9e9ca21
commit c3c9530b4b
5 files changed
+39 -37

No files matched your search

+10 -10
View File
@@ -4,25 +4,25 @@
# include "includes"
namespace coreutils {
class DirectoryEntry {
public:
DirectoryEntry(struct dirent *entry) {
memcpy(&this->entry, entry, sizeof(struct dirent));
memcpy(&this->entry, entry, sizeof(struct dirent));
}
~DirectoryEntry() {}
~DirectoryEntry() {}
std::string getName() {
return std::string(entry.d_name);
return std::string(entry.d_name);
}
private:
struct dirent entry;
};
}
#endif