Typing-Test-C/utilities.h
Aidan Haas 9aef889343
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.
2022-11-07 21:08:47 -05:00

19 lines
364 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SUCCESS 1
#define FAILURE 0
typedef struct {
int length;
char *text;
} Word;
typedef struct {
int number_of_words;
Word *words;
} Word_array;
int generate_words(int num_words, Word_array *words, Word_array *to_return);
int parse_words_file(FILE *words_file, Word_array *words);