ft_putascii.c 1016 B

123456789101112131415161718192021
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_putascii.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2017/05/01 17:07:58 by bchanot #+# #+# */
  9. /* Updated: 2017/05/01 17:08:18 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. void ft_putascii(unsigned char c)
  14. {
  15. if (c > 31 && c < 127)
  16. ft_putchar(c);
  17. else
  18. ft_putchar('.');
  19. }