42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_putstr_fd.c File Reference

The file containing the my_putstr_fd function. More...

#include "my.h"

Functions

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

Detailed Description

The file containing the my_putstr_fd function.

Author
Nicolas TORO

Function Documentation

◆ my_putstr_fd()

int my_putstr_fd ( char const * str,
int fd )

Writes a string (str) in a file descriptor (fd) 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