ft_putchar done
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/17 16:48:37 by adjoly #+# #+# */
|
/* Created: 2023/11/17 16:48:37 by adjoly #+# #+# */
|
||||||
/* Updated: 2023/11/17 20:03:48 by adjoly ### ########.fr */
|
/* Updated: 2023/11/18 10:50:53 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ int ft_printf(const char *format, ...)
|
|||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
if (format[i] == '%')
|
if (format[i] == '%')
|
||||||
ft_putchar_fd('%', 1);
|
ft_putchar('%');
|
||||||
else if (format[i] == 's')
|
else if (format[i] == 's')
|
||||||
ft_putstr_fd(va_arg(args, char *), 1);
|
ft_putstr_fd(va_arg(args, char *), 1);
|
||||||
else if (format[i] == 'c')
|
else if (format[i] == 'c')
|
||||||
|
2
libft
2
libft
Submodule libft updated: 42f67cc750...e391b9b0f7
Reference in New Issue
Block a user