-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_size_n.c
executable file
·26 lines (23 loc) · 1021 Bytes
/
ft_size_n.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_size_n.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sdurr <sdurr@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/08/18 19:39:27 by sdurr #+# #+# */
/* Updated: 2014/08/18 19:40:55 by sdurr ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft.h"
int ft_size_n(char *str)
{
int cpt;
cpt = 0;
while (*str != '\n')
{
str++;
cpt++;
}
return (cpt);
}