Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
buff_read.c File Reference
#include "libft.h"
#include "buff_internal.h"
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for buff_read.c:

Functions

bool buff_read_until_c (t_buff *buff, int fd, char c)
 Reads from a file descriptor until a specific character is found.
 
bool buff_read_until_n (t_buff *buff, int fd, size_t n)
 Reads up to n bytes from a file descriptor into buffer.
 
bool buff_read_all (t_buff *buff, int fd)
 Reads all available data from a file descriptor into buffer.