Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Code from CrazeOS
- #define MAX_FILES 256
- typedef struct file {
- struct file *left_node; // only for directory
- struct file *right_node; // only for directory
- char name[24];
- char data[512];
- bool deleted;
- bool is_dir;
- struct file **children[MAX_FILES];
- } file;
- typedef struct filesystem {
- file *root;
- int num_of_files;
- } filesystem;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement