aboutsummaryrefslogtreecommitdiff
path: root/Converter/includes/compiler.h
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-20 16:24:57 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-20 16:24:57 +0100
commit1a2d0ffdbfb69a2858fb45facfb18468106edd9a (patch)
tree78a52eace964ed3e79e37a5bda71288c22333a21 /Converter/includes/compiler.h
parent505a5ac2a4c57d5daa03046366ac38a2e3182b94 (diff)
downloadmdhtml-1a2d0ffdbfb69a2858fb45facfb18468106edd9a.tar.gz
mdhtml-1a2d0ffdbfb69a2858fb45facfb18468106edd9a.tar.bz2
mdhtml-1a2d0ffdbfb69a2858fb45facfb18468106edd9a.zip
+function to get the lines of some given file
Uses the dynamic array to alleviate the burdens of computing specific memory sizes. Terminates lines for parsing.
Diffstat (limited to 'Converter/includes/compiler.h')
-rw-r--r--Converter/includes/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Converter/includes/compiler.h b/Converter/includes/compiler.h
index 6e1eca8..8d84b71 100644
--- a/Converter/includes/compiler.h
+++ b/Converter/includes/compiler.h
@@ -15,4 +15,7 @@ int find_string(string src, string query, size_t sz_src, size_t sz_query);
/* Check if a given character is a text token*/
bool is_token(char c);
+/* Given a file, get the lines */
+char **get_lines(char *filename);
+
#endif // __COMPILER_H_