42-archive/42sh/includes/hash.h
2017-03-15 21:54:30 +01:00

34 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* hash.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/18 11:10:14 by gwojda #+# #+# */
/* Updated: 2017/03/15 18:54:26 by jhalford ### ########.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_hash_free(void *ptr, size_t size);
void ft_free_hash_table(void);
#endif