/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/05 11:25:46 by ljiriste #+# #+# */
-/* Updated: 2023/09/08 17:19:54 by ljiriste ### ########.fr */
+/* Updated: 2023/09/27 15:16:21 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
{
size_t len;
- len = ft_strlen(tp->main_part);
+ len = ft_strlen(tp->main_part) + (!tp->main_part[0] && conv.type == 'c');
if (conv.type == 's' || conv.type == 'c')
tp->zero_pad = ft_strdup("");
else