summaryrefslogtreecommitdiff
path: root/get_next_line.h
diff options
context:
space:
mode:
authorDominik Kaiser2024-03-22 16:52:19 +0100
committerDominik Kaiser2024-03-22 16:52:19 +0100
commitc9e8005df3f0f3f68f58626420960519b078f5a4 (patch)
treef4355e5a1aef18751252d770e1821285ffa6de41 /get_next_line.h
parent149353e6b0895ae02ae05ee2635519a811b0f46d (diff)
downloadget_next_line-c9e8005df3f0f3f68f58626420960519b078f5a4.tar.gz
get_next_line-c9e8005df3f0f3f68f58626420960519b078f5a4.zip
It is working (or is it?)
If '\n' is the last character in the buffer it won't work. Other than that everything is working fine (as far as my current tests go...)
Diffstat (limited to 'get_next_line.h')
-rw-r--r--get_next_line.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/get_next_line.h b/get_next_line.h
index 1e9a6f6..f0b0006 100644
--- a/get_next_line.h
+++ b/get_next_line.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/15 14:14:07 by dkaiser #+# #+# */
-/* Updated: 2024/03/21 15:22:54 by dkaiser ### ########.fr */
+/* Updated: 2024/03/22 12:04:28 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,6 +19,8 @@
# define BUFFER_SIZE 42
# endif
+int ft_strlen(const char *str);
char *get_next_line(int fd);
-char * str_realloc(char *str, size_t size);
+char *str_realloc(char *str, size_t size);
+
#endif // GET_NEXT_LINE_H