ft_strclr

This commit is contained in:
tanguy mazé 2018-04-07 00:39:55 +02:00
parent 32d984a9f7
commit 871545305c
2 changed files with 26 additions and 3 deletions

View File

@ -6,7 +6,7 @@
# By: tmaze <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/04 10:51:59 by tmaze #+# #+# #
# Updated: 2018/04/06 19:04:49 by tmaze ### ########.fr #
# Updated: 2018/04/07 00:38:15 by tmaze ### ########.fr #
# #
#******************************************************************************#
@ -48,7 +48,8 @@ SRCS = \
ft_memalloc.c \
ft_memdel.c \
ft_strnew.c \
ft_strdel.c
ft_strdel.c \
ft_strclr.c
OBJS = $(SRCS:.c=.o)
INCLS = -I.

22
ft_strclr.c Normal file
View File

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strclr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/06 23:27:33 by tmaze #+# #+# */
/* Updated: 2018/04/06 23:34:44 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void strclr(char *s)
{
int i;
i = 0;
while (s[i])
s[i++] = '\0';
}