42-archive/malloc/srcs/ft_putchar.c
2017-10-07 17:10:59 +02:00

23 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/07 17:07:04 by jhalford #+# #+# */
/* Updated: 2017/10/07 17:07:06 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "malloc_internal.h"
int ft_putchar_fd(char c, int fd)
{
return (write(fd, &c, 1));
}
int ft_putchar(char c)
{
return (write(1, &c, 1));
}