libft
Functions
ft_putnstr_fd.c File Reference
#include "libft.h"
#include <unistd.h>
+ Include dependency graph for ft_putnstr_fd.c:

Go to the source code of this file.

Functions

void ft_putnstr_fd (char *s, size_t n, int fd)
 Writes the first n characters of a string to a file descriptor. More...
 

Function Documentation

◆ ft_putnstr_fd()

void ft_putnstr_fd ( char *  s,
size_t  n,
int  fd 
)

Writes the first n characters of a string to a file descriptor.

Parameters
sThe string, the characters of which to output.
nThe number of characters to output.
fdThe file descriptor.
Remarks
If s contains less than n characters, behaviour is undefined.

Definition at line 25 of file ft_putnstr_fd.c.