-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.c
34 lines (29 loc) · 1.12 KB
/
tools.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
27
28
29
30
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tools.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: asyed <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/27 15:41:34 by asyed #+# #+# */
/* Updated: 2017/11/27 15:43:13 by asyed ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
/*
** Max itterated size = 1024 bytes.
*/
void multi_print(char c, int n)
{
char buf[1024];
int i;
i = 0;
while (i < n)
buf[i++] = c;
ft_putstr(buf);
}
void null_hex(t_options *info)
{
ft_putchar('0');
info->written++;
}