From 8735f25286aa988c6bf23720f265b0bb293c602e Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Tue, 27 Sep 2022 17:25:41 +0200 Subject: [PATCH] d --- Makefile | 14 ++++++-------- a.out | Bin 15152 -> 0 bytes ft_atoi.c | 9 +++++---- ft_memccpy.c | 26 ++++++++++++++++++++++++++ ft_strlcat.c | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 71 insertions(+), 12 deletions(-) delete mode 100755 a.out create mode 100644 ft_memccpy.c create mode 100644 ft_strlcat.c diff --git a/Makefile b/Makefile index 2f03087..7a9f0b0 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: cchauvet G>q_`gHG{KD)EflI55>lL3`z_~FD0m$d*GfS=cH?DE zs!-YOdSMDi3(I#KOT0dX&N$L0+-LcRzut&ftf5e-;warGiBo#g^yxLo>vv-qHfmw{ zE`&R7KgYRo6Z4-M*n}PNxMkD2d8 zPL#E8p$G4uxPq9aX)G+PIgKwKS<^``%$M~GT9sB%Y1Q*uHJ}&A%6d_&>VZ=C8S$fY z=HF>lUmk@N%(wNz*fI=dy#Ut>+KSAu0l`(UD+n%*y?rc%j4Q|p;vQ`|`!@=3WXiuA zLbj@2Fjo+WmsUMXdGx}C@-wws?fCCqq8>cbC6($ZYODEjeppvKNV{&f(Xg_C1&|i3{4cJZRZCZb^&+Z_Bv|TT$?Tw!lq0W|Y0+dt zmdlj8K1)i16?L@uI7;T<9fl_Lvb0EN1?%)wbDu}bC8S1r^0-K+ zWEW0JWdOtyLdun}o=;JwHD)qj7UrKRL;Y+~^@91jT(ecYTGU=Yrd_qq^=3{<=bH9H zyJ~hisLHL*bH0@Q5a_!jUuaO67Tfz;@Kr_=(6_lm%5DA0Rzdk58^=K<)YU#-;!$U*B0 z9c>xuY)im_ZTA8nfqk>nexPnY0RFqM-{-U&b^DXxf3QaU^RPd)hW!=Te+>JVo%z34 z&;JJaQ?Nhew72Y(4jaL(;&mSOyPWpPdi+Mx7WPd}`=f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