Output function take const!
This commit is contained in:
parent
a6830f9b33
commit
27f7d3e9e0
@ -52,10 +52,10 @@ char **ft_split(char const *s, char c);
|
||||
char *ft_itoa(int n);
|
||||
char *ft_strmapi(char const *s, char (*f)(unsigned int, char));
|
||||
void ft_striteri(char *s, void (*f)(unsigned int, char*));
|
||||
void ft_putchar_fd(char c, int fd);
|
||||
void ft_putstr_fd(char *s, int fd);
|
||||
void ft_putendl_fd(char *s, int fd);
|
||||
void ft_putnbr_fd(int n, int fd);
|
||||
void ft_putchar_fd(const char c, int fd);
|
||||
void ft_putstr_fd(const char *s, int fd);
|
||||
void ft_putendl_fd(const char *s, int fd);
|
||||
void ft_putnbr_fd(const int n, int fd);
|
||||
|
||||
/*
|
||||
* Lists
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include "libft.h"
|
||||
|
||||
void ft_putchar_fd(char c, int fd)
|
||||
void ft_putchar_fd(const char c, int fd)
|
||||
{
|
||||
if (fd < 0)
|
||||
return ;
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include "libft.h"
|
||||
|
||||
void ft_putendl_fd(char *s, int fd)
|
||||
void ft_putendl_fd(const char *s, int fd)
|
||||
{
|
||||
if (fd < 0 || s == NULL)
|
||||
return ;
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include "libft.h"
|
||||
|
||||
void ft_putnbr_fd(int n, int fd)
|
||||
void ft_putnbr_fd(const int n, int fd)
|
||||
{
|
||||
long ln;
|
||||
long divider;
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
#include <unistd.h>
|
||||
#include "libft.h"
|
||||
|
||||
void ft_putstr_fd(char *s, int fd)
|
||||
void ft_putstr_fd(const char *s, int fd)
|
||||
{
|
||||
size_t length;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user