/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_putstr_n.c                                      :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: mihykim <mihykim@student.42seoul.kr>       +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/05/23 23:02:54 by mihykim           #+#    #+#             */
/*   Updated: 2020/05/24 00:04:39 by mihykim          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libft.h"

int	ft_putstr_n(char *s, int n)
{
	int		i;

	i = 0;
	while (i < n)
	{
		ft_putchar(s[i]);
		i++;
	}
	return (i);
}
