mirror of
https://github.com/BreizhHardware/projetCGroupe8.git
synced 2026-03-18 21:30:32 +01:00
29 lines
620 B
C
29 lines
620 B
C
#ifndef PROJETCGROUPE8_MAIN_NODETRIE_H
|
|
#define PROJETCGROUPE8_MAIN_NODETRIE_H
|
|
|
|
#define MAX_LETTERS 29
|
|
|
|
#include "List.h"
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
struct NodeTrie{
|
|
struct NodeTrie* children[MAX_LETTERS];
|
|
bool isName;
|
|
struct List* movie;
|
|
};
|
|
|
|
struct NodeTrie* createEmptyNodeTrie();
|
|
|
|
void insertWord(struct NodeTrie* trie, char* word);
|
|
|
|
void deleteWord(struct NodeTrie* trie, char* word);
|
|
|
|
bool findWord(struct NodeTrie* trie, char* word);
|
|
|
|
void deleteNodeTrie(struct NodeTrie** trie);
|
|
|
|
#endif //PROJETCGROUPE8_MAIN_NODETRIE_H
|