Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. // Code from CrazeOS
  2. #define MAX_FILES 256
  3.  
  4. typedef struct file {
  5. struct file *left_node; // only for directory
  6. struct file *right_node; // only for directory
  7. char name[24];
  8. char data[512];
  9. bool deleted;
  10. bool is_dir;
  11. struct file **children[MAX_FILES];
  12. } file;
  13.  
  14.  
  15. typedef struct filesystem {
  16. file *root;
  17. int num_of_files;
  18. } filesystem;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement