-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putstr_fd.c
More file actions
33 lines (27 loc) · 1.16 KB
/
ft_putstr_fd.c
File metadata and controls
33 lines (27 loc) · 1.16 KB
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
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_putstr_fd.c :+: :+: */
/* +:+ */
/* By: dreijans <dreijans@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2022/10/25 19:22:38 by dreijans #+# #+# */
/* Updated: 2023/04/14 20:18:11 by dreijans ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr_fd(char *s, int fd)
{
write (fd, s, ft_strlen(s));
}
/*
Parameters:
s: The string to output.
fd: The file descriptor on which to write.
Return value:
None
External functs:
write
Description:
Outputs the string ’s’ to the given file descriptor.
*/