33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* hash.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2017/02/18 11:10:14 by gwojda #+# #+# */
|
|
/* Updated: 2017/02/18 14:18:06 by gwojda ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef HASH_H
|
|
# define HASH_H
|
|
|
|
# define MAX_HASH 200
|
|
|
|
extern t_list *g_hash[MAX_HASH];
|
|
|
|
typedef struct s_hash
|
|
{
|
|
char *key;
|
|
char *path;
|
|
} t_hash;
|
|
|
|
int ft_add_hash(t_process *p);
|
|
int ft_hash(t_process *p);
|
|
int ft_is_hash(t_process *p);
|
|
int ft_hash_str(char *str);
|
|
|
|
void ft_free_hash_table(void);
|
|
|
|
#endif
|