Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_putstr_fd_free.c File Reference

The file containing the my_putstr_fd_free function. More...

#include "my.h"

Functions

int my_putstr_fd_free (char *str, int fd)
 Writes a string (str) in a file descriptor (fd), free it and returns the length of the printed string.
 

Detailed Description

The file containing the my_putstr_fd_free function.

Author
Nicolas TORO

Function Documentation

◆ my_putstr_fd_free()

int my_putstr_fd_free ( char * str,
int fd )

Writes a string (str) in a file descriptor (fd), free it and returns the length of the printed string.

Parameters
strThe string to print
fdThe file descriptor to write in
Returns
int The number of printed characters
Author
Nicolas TORO