tgrekov-pipex
HIVE pipex May 2024
|
Definition in file here_doc.c.
#include <unistd.h>
#include "../../mandatory/utils/utils.h"
#include <ft_printf.h>
#include <get_next_line_bonus.h>
#include <libft.h>
Go to the source code of this file.
Functions | |
int | here_doc (char *limiter, int *in_out) |
Capture multiline input from stdin and write to a pipe readable from in_out [0] until a line containing only limiter is reached. | |
int here_doc | ( | char * | limiter, |
int * | in_out | ||
) |
Capture multiline input from stdin
and write to a pipe readable from in_out
[0] until a line containing only limiter
is reached.
limiter | Character to stop reading on |
in_out | Input filedes, output filedes |
int | 0 on failure, 1 on success |
Definition at line 46 of file here_doc.c.
References err(), ft_printf(), ft_strlen(), and get_next_line().