| 123456789101112131415161718192021222324252627282930 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_putchar.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2015/11/25 16:39:02 by bchanot #+# #+# */
- /* Updated: 2017/04/15 00:35:26 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- #include <unistd.h>
- int ft_putchar_fd(int c, int fd)
- {
- if (!c)
- return (false);
- write(fd, &c, 1);
- return (true);
- }
- int ft_putchar(int c)
- {
- if (!c)
- return (false);
- write(1, &c, 1);
- return (true);
- }
|