26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_printn.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/02/14 14:43:00 by cchauvet #+# #+# */
|
|
/* Updated: 2023/02/14 14:47:27 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "./utils.h"
|
|
|
|
void ft_printn(const char *str, size_t n)
|
|
{
|
|
size_t i;
|
|
|
|
i = 0;
|
|
while (i < n && str[i] != '\0')
|
|
{
|
|
ft_putchar_fd(1, str[i]);
|
|
i++;
|
|
}
|
|
}
|