text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_memset.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: jnovotny <jnovotny@student.hive.fi>        +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/10/17 22:46:31 by jnovotny          #+#    #+#             */
  /*   Updated: 2019/10/21 11:54:33 by jnovotny         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	*ft_memset(void *b, int c, size_t len)
  {
  	size_t			i;
  	unsigned char	ch;
  	char			*rslt;
  
  	ch = c;
  	i = 0;
  	rslt = b;
  	while (i < len)
  	{
  		rslt[i] = ch;
  		i = i + 1;
  	}
  	return (b);
  }
  