diff options
| author | Cabergs Charles <cacharle@e-r5-p7.s19.be> | 2019-10-09 12:36:59 +0200 |
|---|---|---|
| committer | Cabergs Charles <cacharle@e-r5-p7.s19.be> | 2019-10-09 12:36:59 +0200 |
| commit | e1e7e692a26ab68dca25ea02ff8bed72c3c12e8e (patch) | |
| tree | 77721db671c769c4b1caf86621d3580eea3cd97c /ft_printf.h | |
| parent | 8f3e1c37b67ae18ece6140e497e48139c43f8253 (diff) | |
| download | ft_printf-e1e7e692a26ab68dca25ea02ff8bed72c3c12e8e.tar.gz ft_printf-e1e7e692a26ab68dca25ea02ff8bed72c3c12e8e.tar.bz2 ft_printf-e1e7e692a26ab68dca25ea02ff8bed72c3c12e8e.zip | |
Added hexdecimal support
Diffstat (limited to 'ft_printf.h')
| -rw-r--r-- | ft_printf.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ft_printf.h b/ft_printf.h index f3c09ab..b755f91 100644 --- a/ft_printf.h +++ b/ft_printf.h @@ -1,6 +1,23 @@ #ifndef FT_PRINTF_H # define FT_PRINTF_H +#define PUTXNBR(nb) (ft_putxnbr(nb, "0123456789abcdef")) +#define PUTXMAJNBR(nb) (ft_putxnbr(nb, "0123456789ABCDEF")) + +/* +** ft_printf.c +*/ + int ft_printf(const char *format, ...); +/* +** utils.c +*/ + +void ft_putchar(char c); +void ft_putstr(char *str); +void ft_putnbr(int nb); +void ft_putxnbr(unsigned int n, char *hex_symbols); +void ft_putunbr(unsigned int n); + #endif |
