diff options
author | rafa_99 <rafa99@protonmail.com> | 2020-12-15 23:05:17 +0000 |
---|---|---|
committer | rafa_99 <rafa99@protonmail.com> | 2020-12-15 23:05:17 +0000 |
commit | 5eba64da58978824f99259ea221a13b21f335a21 (patch) | |
tree | 17fdcf319acbbdbaf4c86df60ac1719ecbba9caf /utils.h | |
parent | 88d777a152d74a49c04d06b780758cd14a33dc8f (diff) |
Added Documentation and Updated Fast Seeded Number Generator
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2,8 +2,18 @@ #define MAX_LINE 256 +/* Checks if a file exists */ int checkIfFileExists(char *path); +/* Turns a string into a number by + * using the sum of its ascii values. + */ int numerize(char *string); +/* Counts the lines from a dictionary file */ int lineCounter(FILE *dictionary); +/* Returns a specified line from a dictionary file */ char* getLine(FILE *dictionary, int line); +/* Returns a random number within the inclusive number range + * and based on the inputted question. + * Uses a fast seeded number generator. + */ int getRandomNumber(int min, int max, char *question); |