Add ft_vprintf_precision_bonus and define HEXA_LOWER HEXA_UPPER

This commit is contained in:
gbaconni
2022-04-29 11:00:53 +02:00
parent 63712bd5d6
commit 34fe699fea
9 changed files with 104 additions and 51 deletions

View File

@@ -6,7 +6,7 @@
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/18 15:26:06 by gbaconni #+# #+# */
/* Updated: 2022/04/29 08:56:40 by gbaconni ### lausanne.ch */
/* Updated: 2022/04/29 10:58:37 by gbaconni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,13 +17,17 @@
# include <stdarg.h>
# include <unistd.h>
# if defined (__APPLE__)
/* Constants */
# ifdef __APPLE__
# define NIL "0x0"
# else
# define NIL "(nil)"
# endif
# define SPECIFIERS "cspdiuxX%"
# define HEXA_LOWER "0123456789abcdef"
# define HEXA_UPPER "0123456789ABCDEF"
/* Helper */
@@ -48,6 +52,7 @@ int ft_vprintf_percent(const char *format, va_list ap);
int ft_vprintf_escape(const char *format, va_list ap);
int ft_vprintf_other(const char *format, va_list ap);
# ifdef BONUS
/* Bonus */
enum {
@@ -58,6 +63,8 @@ enum {
F_PLUS = 1 << 4
};
int ft_vprintf_precision_bonus(const char *format, va_list ap);
int ft_vprintf_flags_bonus(const char *format, va_list ap);
# endif
#endif