-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr_rem.c
23 lines (20 loc) · 1.03 KB
/
ft_putstr_rem.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_rem.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ohachim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/06 16:49:55 by ohachim #+# #+# */
/* Updated: 2019/03/06 16:49:57 by ohachim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr_rem(char *str, t_rem *rems)
{
int len;
len = ft_strlen(str);
write(1, str, len);
rems->counter += len;
rems->cursor += 1;
}