intra to gitea
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_ith.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: lfirmin <[email protected]> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/06/19 04:44:27 by lfirmin #+# #+# */
|
||||
/* Updated: 2024/06/19 04:49:51 by lfirmin ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "ftprintf.h"
|
||||
|
||||
int ft_print_ith(int fd, unsigned int nbr, const char str)
|
||||
{
|
||||
if (nbr == 0)
|
||||
return (write(fd, "0", 1));
|
||||
ft_conv_ith(fd, nbr, str);
|
||||
return (ft_hex_len(nbr));
|
||||
}
|
||||
Reference in New Issue
Block a user