int ft_checkd(t_numb *e) { int cnt; int i; cnt = 0; i = ft_count(e->d); if (e->d == 0) e->valzero = 1; if (e->indminus == 1) cnt = cnt + ft_checkd1(e); else if (e->indminus == 0) { if (e->valzero == 1) { cnt = cnt + ft_putnbr(e->d, e); } else { cnt = cnt + ft_countd(e, e->d); cnt = cnt + ft_putnbr(e->d, e); } } ft_initialize(e); return (cnt); }
int ft_case11c(char *****str, t_numb *e, va_list ap) { int cnt; char *s2; cnt = 0; e->us = va_arg(ap, unsigned int); s2 = ft_ltohex6(e->us); ft_putstr(s2); cnt = cnt + ft_strlen(s2); (****str)++; free(s2); s2 = NULL; ft_initialize(e); e->indelsif = 1; return (cnt); }
t_map *ft_create_map(t_map *map, char *file) { int i; int count; i = 0; count = 0; ft_initialize("FILE", map, file); if (file[0] != 0) { while (file[i] && file[i] != '\n') i++; count = ++i; while (file[i] && file[i] != '\n') i++; map->nb_columns = i - count; } return (map); }
int ft_case11b(char *****str, t_numb *e, va_list ap) { int cnt; char *s2; cnt = 0; e->ul = va_arg(ap, unsigned long); s2 = ft_ltohex3(e->ul); if (e->indsharp == 1 && e->ul != 0) s2 = ft_case11b1(s2); if (e->ul >= 4294967296 && e->ul <= 4563402751) s2 = ft_case11b2(s2); e->s = s2; cnt = cnt + ft_checks(e); (****str)++; free(s2); s2 = NULL; ft_initialize(e); e->indelsif = 1; return (cnt); }
bool ft_present () { return !ft_initialize (); }