-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putchar_fd.c
29 lines (27 loc) · 1.21 KB
/
ft_putchar_fd.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nholbroo <nholbroo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/23 16:33:28 by nholbroo #+# #+# */
/* Updated: 2025/02/03 16:58:32 by nholbroo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
Which function:
Not a standard function in C.
Definition:
The ft_putchar_fd() function writes one byte (c) to the file descriptor
(fd).
Return values:
None.
@param c The byte value to be written.
@param fd The file descriptor (1 for stdout, 2 for stderr, etc.)
*/
void ft_putchar_fd(char c, int fd)
{
write (fd, &c, 1);
}