-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putchar_fd.c
More file actions
25 lines (23 loc) · 1.15 KB
/
ft_putchar_fd.c
File metadata and controls
25 lines (23 loc) · 1.15 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jowagner <jowagner@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/29 15:46:52 by jowagner #+# #+# */
/* Updated: 2024/12/12 19:49:37 by jowagner ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/**
* @brief Writes a character to a file descriptor.
*
* @param c The character to be written.
* @param fd The file descriptor to write to (1 for standard output,
* 2 for standard error, etc.).
*/
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}