Push_swap/printf_fd/ftprintf.h

43 lines
1.7 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ftprintf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfirmin <lfirmin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/19 04:44:27 by lfirmin #+# #+# */
/* Updated: 2024/06/19 07:49:08 by lfirmin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FTPRINTF_H
# define FTPRINTF_H
# include <stdarg.h>
# include <unistd.h>
# include <stdio.h>
# include "stdlib.h"
void ft_putchar(int fd, char c);
void ft_put_ptr(int fd, unsigned long long num);
void ft_conv_ith(int fd, unsigned int nbr, const char str);
int ft_hex_len(unsigned int nbr);
int ft_sorting(va_list list, const char str, int fd);
int ft_printf_fd(int fd, const char *str, ...);
int ft_print_ith(int fd, unsigned int nbr, const char str);
int ft_printchar(int fd, int c);
int ft_printstr(int fd, char *s);
int ft_printpercent(int fd);
int ft_print_unsigned(int fd, unsigned int nb);
int ft_print_nbr(int fd, int nb);
int ft_print_ptr(int fd, unsigned long long ptr);
int ft_adrr_len(unsigned long long nbr);
int ft_print_null(int fd);
char *ft_itoa(int n);
char *ft_unsigned_itoa(unsigned int n);
size_t ft_count(long long int n);
#endif