text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_memset.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: mdemir <42istanbul.com.tr>                 +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2022/01/03 19:04:15 by mdemir            #+#    #+#             */
  /*   Updated: 2022/01/08 02:54:55 by mdemir           ###   ########.tr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	*ft_memset(void *b, int c, size_t len)
  {
  	unsigned char	*ptr;
  
  	ptr = (unsigned char *)b;
  	while (len--)
  		*(ptr++) = (unsigned char)c;
  	return (b);
  }
  