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
Functions
writer.c File Reference
#include <unistd.h>
#include <string.h>
Include dependency graph for writer.c:

Go to the source code of this file.

Functions

int write_error_msg (const char *str)
 ! WRITTER !!
 
int write_to_client (const int fd, const char *str)
 Write any message to a specific file descriptor.
 

Function Documentation

◆ write_error_msg()

int write_error_msg ( const char * str)

! WRITTER !!

Write any message in the error output

Parameters
strThe string we want to write
Returns
(-1)

Definition at line 11 of file writer.c.

◆ write_to_client()

int write_to_client ( const int fd,
const char * str )

Write any message to a specific file descriptor.

Parameters
fdThe file descriptor where we want to write
strThe string we want to write
Returns
(0)

Definition at line 17 of file writer.c.