Add ft_vprintf_precision_bonus and define HEXA_LOWER HEXA_UPPER
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user