1 /* 2 * @ : Copyright (c) 2021 Phytium Information Technology, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0. 5 * 6 * @Date: 2021-04-07 09:53:07 7 * @LastEditTime: 2021-05-26 15:39:25 8 * @Description: This files is for printf functions 9 * 10 * @Modify History: 11 * Ver Who Date Changes 12 * ----- ------ -------- -------------------------------------- 13 */ 14 15 #ifndef Ft_printf_H 16 #define Ft_printf_H 17 18 #include <stdarg.h> 19 #include "ft_types.h" 20 21 #define PRINTF_BUFFER_LENGTH 4096 22 23 typedef s32 (*vsprintf_p)(char *buf, const char *format, va_list arg_ptr); 24 25 void Ft_vsprintfRegister(vsprintf_p f); 26 void Ft_printf(const char *fmt, ...); 27 char *Ft_itoa(int num, char *str, int radix); 28 29 #endif // ! 30