aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-19 16:27:29 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-19 16:27:29 +0200
commita407fe611354d71330fc352fbc2a9fe268b4104f (patch)
tree21433e38b4f7d3da066f94b53eee265af969a9d6 /Makefile
parente0abc6358c4cacc840ac8b3a9a92900f8ce49f0a (diff)
downloadget_next_line-a407fe611354d71330fc352fbc2a9fe268b4104f.tar.gz
get_next_line-a407fe611354d71330fc352fbc2a9fe268b4104f.tar.bz2
get_next_line-a407fe611354d71330fc352fbc2a9fe268b4104f.zip
Removed dynamic rest
Because if user doesnt read a file until the end, this would cause memory leak. All moulitest tests pass except for large file with certain buffer sizes greater than the line len and smaller than the file len.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3542371..ab96c2c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,14 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/08 08:11:00 by cacharle #+# #+# #
-# Updated: 2019/10/10 11:20:17 by cacharle ### ########.fr #
+# Updated: 2019/10/19 14:49:29 by cacharle ### ########.fr #
# #
# **************************************************************************** #
$(RM) = rm -f
CC = gcc
-CCFLAGS = -Wall -Wextra -Werror
+CCFLAGS = -Wall -Wextra -g
NAME = get_next_line
SRC = get_next_line.c get_next_line_utils.c main.c
@@ -35,3 +35,10 @@ fclean: clean
$(RM) $(NAME)
re: fclean all
+
+compare: all
+ @./get_next_line Makefile > t1
+ @cat -e Makefile | sed 's/^\(.*\)\$$/[\1]/' > t2
+ @diff t1 t2
+
+