Implemented parse_words_file and generate_random
Program now ready for UI typing test to be implemented. Updated Makefile to reflect changes in project. Created debugger.c to more easily work on utilities.
This commit is contained in:
+7
-2
@@ -5,10 +5,15 @@
|
||||
#define SUCCESS 1
|
||||
#define FAILURE 0
|
||||
|
||||
typedef struct {
|
||||
int length;
|
||||
char *text;
|
||||
} Word;
|
||||
|
||||
typedef struct {
|
||||
int number_of_words;
|
||||
char words[];
|
||||
Word *words;
|
||||
} Word_array;
|
||||
|
||||
int generate_words(int num_words, Word_array *words, char *to_return);
|
||||
int generate_words(int num_words, Word_array *words, Word_array *to_return);
|
||||
int parse_words_file(FILE *words_file, Word_array *words);
|
||||
Reference in New Issue
Block a user