-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line_bonus.h
36 lines (30 loc) · 1.33 KB
/
get_next_line_bonus.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akdovlet <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/13 22:33:53 by akdovlet #+# #+# */
/* Updated: 2024/01/14 11:34:38 by akdovlet ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_BONUS_H
# define GET_NEXT_LINE_BONUS_H
# include <stdlib.h>
# include <unistd.h>
# include <fcntl.h>
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 42
# endif
# ifndef FD_MAX
# define FD_MAX 512
# endif
int ak_strchr(char *str, char c);
int ak_strlen(char *str);
char *ak_strjoin(char *s1, char *s2);
char *get_next_line(int fd);
char *read_to_newline(int fd, char *buffer);
void clean_static(char *buffer);
char *extract_line(char *tmp);
#endif