aboutsummaryrefslogtreecommitdiffstats
path: root/src/word.h
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2025-06-29 20:48:41 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2025-06-29 20:48:41 -0400
commit129a10d1ee57a047ae9a3084e175de1e7daf6ffe (patch)
tree079c753b5a9e4856c121a1a2eb59dc6ceba9396f /src/word.h
parentIgnore .cache (diff)
downloadcli-129a10d1ee57a047ae9a3084e175de1e7daf6ffe.zip
Fix justify behavior
Diffstat (limited to 'src/word.h')
-rw-r--r--src/word.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/word.h b/src/word.h
deleted file mode 100644
index b5d94b5..0000000
--- a/src/word.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef WORD_H
-#define WORD_H
-
-#include <stdio.h>
-
-#define READ_WORD_ERR_READ -1
-#define READ_WORD_ERR_EOF 0
-#define READ_WORD_SUCCESS 1
-
-/**
- * Read in a word from a file up to size length.
- *
- * If there is any leading whitespace, it will be discarded
- * before starting to read in a word.
- *
- * @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.
- *
- * @returns < 0 on read error; 0 on EOF; > 0 on success.
- */
-int read_word(FILE *fp, char *word, size_t length);
-
-#endif