My solution for the ft_printf assignment.

fix: detect write failure master