| 1234567891011121314151617181920212223242526 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_putchar.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2015/11/25 16:39:02 by bchanot #+# #+# */
- /* Updated: 2016/11/02 13:56:35 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- #include <unistd.h>
- int ft_putchar_fd(int c, int fd)
- {
- write(fd, &c, 1);
- return (1);
- }
- int ft_putchar(int c)
- {
- write(1, &c, 1);
- return (1);
- }
|