docs(print): moving the actual documentation on the header

- The documentation on the header allow u to see on the files where the
header is inclued
This commit is contained in:
Raphael 2025-09-05 16:29:51 +02:00
parent ed64bd73d6
commit 701ce57f84
No known key found for this signature in database
6 changed files with 48 additions and 43 deletions

View file

@ -6,18 +6,60 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/31 15:07:30 by rparodi #+# #+# */
/* Updated: 2025/09/01 17:36:18 by rparodi ### ########.fr */
/* Updated: 2025/09/05 16:23:42 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PRINT_H
# define PRINT_H
/**
* @brief Print on a file descriptor
*
* @param fd the file descriptor
* @param s the string
* @return the number of character printable
*/
int ft_dprintf(int fd, const char *s, ...);
/**
* @brief Print on the standard output
*
* @param s the string
* @return the number of character printable
*/
int ft_printf(const char *s, ...);
/**
* @brief print an character on a file descriptor
*
* @param c the character to print
* @param fd the file descriptor
*/
void ft_putchar_fd(char c, int fd);
/**
* @brief Print a string follow by a new line on a file descriptor
*
* @param s the string to print
* @param fd the file descriptor
*/
void ft_putendl_fd(char *s, int fd);
/**
* @brief Print a number on a file descriptor
*
* @param n the number to print
* @param fd the file descriptor
*/
void ft_putnbr_fd(int n, int fd);
/**
* @brief print a string on a file descriptor
*
* @param s the string to print
* @param fd the file descriptor
*/
void ft_putstr_fd(char *s, int fd);
#endif