-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_next_line.h
35 lines (32 loc) · 1.76 KB
/
get_next_line.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pandalaf <pandalaf@student.42wolfsburg. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/08/26 18:42:49 by pandalaf #+# #+# */
/* Updated: 2022/08/26 18:42:49 by pandalaf ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H
# ifndef BUFFER_SIZE
# define BUFFER_SIZE 5
# endif
# include <stddef.h>
//Function that outputs lines from a given file descriptor.
char *get_next_line(int fd);
//Function determines length of the string (number of characters).
size_t ft_strlen(const char *str);
//Function searches for char and returns first location. 0 not found. 1 is 1st.
int ft_strsrch(char *str, int ch);
//Function joins two character strings, creates a new char string.
char *ft_strjoinmod(char *s1, char *s2);
//Function joins the initial string with reads from a descriptor until newline.
char *joining(int fd, char *initial);
//Function trims the input string such that contents after newline are cut.
char *output(char *candidate);
//Function takes input string and returns contents after the first newline.
char *remaining(char *candidate);
#endif