issue #39
This commit is contained in:
parent
949d0b2c62
commit
703f8a4cd4
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2017/01/08 12:35:11 by gwojda #+# #+# */
|
/* Created: 2017/01/08 12:35:11 by gwojda #+# #+# */
|
||||||
/* Updated: 2017/02/14 11:13:10 by gwojda ### ########.fr */
|
/* Updated: 2017/02/28 11:11:26 by gwojda ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -35,6 +35,8 @@ int ft_get_size_prev(char *str, size_t pos)
|
||||||
--pos;
|
--pos;
|
||||||
++len;
|
++len;
|
||||||
}
|
}
|
||||||
|
if (str[pos] == '\n')
|
||||||
|
--len;
|
||||||
return (len);
|
return (len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue