From 3965ea7031e41270d89e72a29c8085c765621c7e Mon Sep 17 00:00:00 2001 From: Fernando Gonzalez-Morales <542@holbertonschool.com> Date: Mon, 22 Oct 2018 16:22:40 +0000 Subject: [PATCH] Adds printer struct and closes #7 --- holberton.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/holberton.h b/holberton.h index 22d9c78..5d751f6 100644 --- a/holberton.h +++ b/holberton.h @@ -1,6 +1,18 @@ #ifndef __HOLBERTON_H__ #define __HOLBERTON_H__ +/** + * struct printer - format printer struct + * @spec: the format specifier + * @fn: the function that handles spec + */ +typedef struct printer +{ + char *spec; + int (*fn) (va_list); +} print_t; + + int _putchar(char c); #endif