diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2016-06-19 18:55:35 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-19 18:55:35 -0300 |
commit | 0fa03322a935a6ffc564852068f13302f3dd1e72 (patch) | |
tree | 2f7fc7ef742e55a46cec55fac9114256c68cb002 /StringUtils.h | |
parent | 52f814481cdfa4be2290953978a81014f8bfd391 (diff) |
Dynamically adjust the size of line reads
* Dynamically adjust the size of line reads.
* Remove some more uses of fgets with arbitrary sizes.
* Fix reading of lines and width of n column.
Fixes #514.
Diffstat (limited to 'StringUtils.h')
-rw-r--r-- | StringUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/StringUtils.h b/StringUtils.h index 38ffae7f..97620342 100644 --- a/StringUtils.h +++ b/StringUtils.h @@ -9,6 +9,8 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ +#include <stdio.h> + #define String_startsWith(s, match) (strstr((s), (match)) == (s)) #define String_contains_i(s1, s2) (strcasestr(s1, s2) != NULL) @@ -24,4 +26,6 @@ void String_freeArray(char** s); char* String_getToken(const char* line, const unsigned short int numMatch); +char* String_readLine(FILE* fd); + #endif |