Skip to content
Snippets Groups Projects
stack_operations.h 354 B
Newer Older
  • Learn to ignore specific revisions
  • #ifndef DFS_H
    #define DFS_H
    
    #include "common.h"
    
    Jakob Olsson's avatar
    Jakob Olsson committed
    struct directory {
    
    	struct list_head list;
    
    Jakob Olsson's avatar
    Jakob Olsson committed
    	char *path;
    
    void push(struct directory *n, struct list_head *list);
    struct directory *pop(struct list_head *list);
    
    Jakob Olsson's avatar
    Jakob Olsson committed
    bool search(char *path, struct list_head *list);
    void clear_list(struct list_head *list);
    void print_list_dfs(struct list_head *list);