Skip to content

Commit

Permalink
ft_putchar : write one char
Browse files Browse the repository at this point in the history
  • Loading branch information
Walid Araissi committed Nov 10, 2022
1 parent 4e17f8e commit 3db125b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ft_putchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
/* By: waraissi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/09 18:41:33 by waraissi #+# #+# */
/* Updated: 2022/11/10 16:15:10 by waraissi ### ########.fr */
/* Updated: 2022/11/10 17:33:03 by waraissi ### ########.fr */
/* */
/* ************************************************************************** */

#include "ft_printf.h"

void ft_putchar(char c , int *res)
void ft_putchar(char c, int *res)
{
write(1, &c, 1);
*res = *res + 1;
}
}

0 comments on commit 3db125b

Please sign in to comment.