-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr_fd.c
More file actions
20 lines (18 loc) · 1012 Bytes
/
ft_putstr_fd.c
File metadata and controls
20 lines (18 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_putstr_fd.c :+: :+: */
/* +:+ */
/* By: jaberkro <jaberkro@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2021/10/18 19:40:37 by jaberkro #+# #+# */
/* Updated: 2022/01/04 18:39:21 by Jorien ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_putstr_fd(char *s, int fd)
{
if (!s)
return (-1);
return (write(fd, s, ft_strlen(s)));
}