text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_memset.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: atrudel <marvin@42.fr>                     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2016/11/05 16:14:25 by atrudel           #+#    #+#             */
  /*   Updated: 2016/11/09 14:18:16 by atrudel          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	*ft_memset(void *b, int c, size_t len)
  {
  	unsigned char *ptr;
  
  	ptr = (unsigned char *)b;
  	while (len > 0)
  	{
  		*ptr = (unsigned char)c;
  		ptr++;
  		len--;
  	}
  	return (b);
  }
  