#ifndef WORD_H #define WORD_H #include /** * Read in a word from a file up to size length. * * @param[in] fp The file to read a word from. * @param[out] word The word that was read as a null-terminated string. * @param[in] length The length of the word to read in. * * @note `length` should be the number of characters you'd * like to read in plus one to take into account the * null terminator. */ int read_word(FILE *fp, char *word, size_t length); #endif