-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset.h
More file actions
41 lines (24 loc) · 626 Bytes
/
Copy pathset.h
File metadata and controls
41 lines (24 loc) · 626 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef INCLUDED
#define INCLUDED 1
#include <stdio.h>
#include <stdlib.h>
char *my_itoa_base(size_t n, int base);
int my_strlen(char *s);
void my_strcpy(char *s1, char *s2);
int equal(char *s1,char *s2);
typedef struct{
int size;
int capacity;
char **array;
}set;
int insert_to_set(set* s, char *str);
void free_set(set *s);
size_t get_hash(char *str);
set* new_set(int capacity);
void rehash(set* s);
void print_set(set *s);
int insert_to_set(set* s, char *str);
int remove_from_set(set *s, char *str);
int are_two_set_equal(set *set1, set *set2);
int set_contains(set *Set, char *str);
#endif