-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printalpha.c
30 lines (26 loc) · 1.09 KB
/
ft_printalpha.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: alaparic <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/18 08:21:44 by alaparic #+# #+# */
/* Updated: 2022/12/01 12:44:12 by alaparic ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_putchar(char c)
{
return (write(1, &c, 1));
}
int ft_putstr(char *c)
{
int len;
if (!c)
return (ft_putstr("(null)"));
len = 0;
while (c[len])
len += ft_putchar(c[len]);
return (len);
}