-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnc_print.h
56 lines (49 loc) · 1.87 KB
/
nc_print.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: marvin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/17 15:30:57 by marvin #+# #+# */
/* Updated: 2023/03/17 15:30:57 by marvin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef NC_PRINT_H
# define NC_PRINT_H
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <limits.h>
# include <unistd.h>
# include <ctype.h>
/**
* @brief Outputs the character c to the file descriptor fd.
*
* @param c The character to output
* @param fd The file descriptor on which to write
*/
void nc_putchar_fd(char c, int fd);
/**
* @brief Outputs the string s to the file descriptor fd.
*
* @param s The string to output
* @param fd The file descriptor on which to write
*/
void nc_putstr_fd(char *s, int fd);
/**
* @brief Outputs the string s to the file descriptor fd, followed by
* a newline.
*
* @param s The string to output
* @param fd The file descriptor on which to write
*/
void nc_putendl_fd(char *s, int fd);
/**
* @brief Outputs the integer n to the file descriptor fd.
*
* @param n The integer to output
* @param fd The file descriptor on which to write
*/
void nc_putnbr_fd(int n, int fd);
#endif