Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int exist_dir(char *dname)
- {
- int i;
- int num_entries;
- cs1550_directory_entry **entries;
- num_entries = get_dirs(entries);
- for (i = 0; i< num_entries; i++) {
- if (entries[i]->dname == dname) {
- free_dirs(entries, num_entries);
- return 1;
- }
- }
- free_dirs(entries, num_entries);
- return 0;
- }
Add Comment
Please, Sign In to add comment