tgrekov-fdf
HIVE fdf May 2024
Loading...
Searching...
No Matches
repeat_str_n.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* repeat_str_n.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/20 21:26:03 by tgrekov #+# #+# */
/* Updated: 2024/04/26 10:29:29 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file repeat_str_n.c.

Include dependency graph for repeat_str_n.c:

Go to the source code of this file.

Functions

int repeat_str_n (const char *str, int n, int fd)
 Write exactly n characters from str on descriptor fd. Repeats string if ft_strlen(str) is greater than n.
 

Function Documentation

◆ repeat_str_n()

int repeat_str_n ( const char *  str,
int  n,
int  fd 
)

Write exactly n characters from str on descriptor fd. Repeats string if ft_strlen(str) is greater than n.

Parameters
[in]str
[in]n
[in]fd
Return values
intNumber of characters written, or -1 on error.

Definition at line 50 of file repeat_str_n.c.

References ft_strlen().

Here is the call graph for this function:
Here is the caller graph for this function: