Zappy - Year end project 2
This is a project that Epitech asked us to create in order to allow us to reveiw the notions of the current year.
Loading...
Searching...
No Matches
writer.c
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2023
3** my_zappy
4** File description:
5** utils.c
6*/
7
8#include <unistd.h>
9#include <string.h>
10
11int write_error_msg(const char *str)
12{
13 write(STDERR_FILENO, str, strlen(str));
14 return (-1);
15}
16
17int write_to_client(const int fd, const char *str)
18{
19 write(fd, str, strlen(str));
20 return (0);
21}
int write_to_client(const int fd, const char *str)
Write any message to a specific file descriptor.
Definition writer.c:17
int write_error_msg(const char *str)
! WRITTER !!
Definition writer.c:11