Normed most of the stdme

This commit is contained in:
Maieul BOYER 2024-07-10 18:06:10 +02:00
parent 882d5cb5bb
commit ac5458d42c
No known key found for this signature in database
31 changed files with 149 additions and 617 deletions

View file

@ -1,4 +1,3 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
@ -7,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/05 19:55:09 by maiboyer #+# #+# */
/* Updated: 2024/07/05 19:57:23 by maiboyer ### ########.fr */
/* Updated: 2024/07/10 17:55:18 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,9 +16,9 @@
#include "me/types.h"
#include <stdarg.h>
t_usize me_vprintf_fd(t_fd *fd, t_const_str fmt, va_list *args)
t_usize me_vprintf_fd(t_fd *fd, t_const_str fmt, va_list *args)
{
t_fprintf_arg passthru;
t_fprintf_arg passthru;
if (fd == NULL || fmt == NULL || args == NULL)
return (0);
@ -29,10 +28,10 @@ t_usize me_vprintf_fd(t_fd *fd, t_const_str fmt, va_list *args)
return (passthru.total_print);
}
t_usize me_printf_fd(t_fd *fd, t_const_str fmt, ...)
t_usize me_printf_fd(t_fd *fd, t_const_str fmt, ...)
{
va_list args;
t_usize res;
va_list args;
t_usize res;
va_start(args, fmt);
res = me_vprintf_fd(fd, fmt, &args);