makefile a la norme

This commit is contained in:
Hugo LAMY
2019-12-03 17:47:29 +01:00
parent 90106ef3ae
commit 41e56fce3b
75 changed files with 42 additions and 51 deletions

27
srcs/part1/ft_bzero.c Normal file
View File

@@ -0,0 +1,27 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_bzero.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/25 13:54:43 by hulamy #+# #+# */
/* Updated: 2019/11/25 13:54:44 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_bzero(void *s, size_t n)
{
size_t i;
unsigned char *ptr;
if (n)
{
ptr = (unsigned char *)s;
i = 0;
while (i < n)
ptr[i++] = '\0';
}
}