ft_putnbr_base.c 1.0 KB

12345678910111213141516171819202122
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_putnbr_base.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2017/02/02 02:30:08 by bchanot #+# #+# */
  9. /* Updated: 2017/02/02 02:31:34 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. void ft_putnbr_base(int value, int base)
  14. {
  15. char *str;
  16. str = ft_itoa_base(value, base);
  17. ft_putstr(str);
  18. ft_memdel((void **)&str);
  19. }