mise a la norme

This commit is contained in:
Hugo LAMY
2020-03-12 22:33:55 +01:00
parent 02bd116005
commit 84b88d87d3
6 changed files with 46 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_flag_transform.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/12 22:30:28 by hulamy #+# #+# */
/* Updated: 2020/03/12 22:30:41 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
@@ -65,7 +76,6 @@ char *ft_precision(char *s, char *print, char *type)
if ((tmp = ft_strchr(s, '.')))
{
precision = ft_atoi(tmp + 1);
// *tmp = '\0';
while (*s && ft_strchr("#- +'0", *(++s)))
if (*s == '0')
*s = '/';