29# define FT_LONG_MAX 9223372036854775807L
51void *
ft_calloc(
size_t count,
size_t size);
67void *
ft_memchr(
const void *s,
int c,
size_t n);
68int ft_memcmp(
const void *s1,
const void *s2,
size_t n);
69void *
ft_memcpy(
void *dst,
const void *src,
size_t n);
70void *
ft_memmove(
void *dst,
const void *src,
size_t len);
71void *
ft_memset(
void *b,
int c,
size_t len);
76char **
ft_split(
char const *s,
char c);
79void ft_striteri(
char *s,
void (*f)(
unsigned int,
char *));
80char *
ft_strjoin(
char const *s1,
char const *s2);
81size_t ft_strlcat(
char *dst,
const char *src,
size_t dstsize);
82size_t ft_strlcpy(
char *dst,
const char *src,
size_t dstsize);
84char *
ft_strmapi(
char const *s,
char (*f)(
unsigned int,
char));
85int ft_strncmp(
const char *s1,
const char *s2,
size_t n);
86char *
ft_strnstr(
const char *haystack,
const char *needle,
size_t len);
88char *
ft_strtrim(
char const *s1,
char const *set);
89char *
ft_substr(
char const *s,
unsigned int start,
size_t len);
void ft_lstadd_front(t_list **lst, t_list *new)
Insert node new into the start of the list pointed to by the pointer at lst.
int ft_memcmp(const void *s1, const void *s2, size_t n)
Compares n bytes of byte string s1 against byte string s2.
size_t ft_strlcpy(char *dst, const char *src, size_t dstsize)
Copy at most dstsize - 1 characters from string src into dst.
void ft_lstiter(t_list *lst, void(*f)(void *))
Iterates over a list and applies the function f over each node.
void * ft_memset(void *b, int c, size_t len)
Fills len bytes of byte string b with value c.
char * ft_strdup(const char *s1)
Allocates memory for, copies to, and returns a duplicate of s1.
int ft_isdigit(int c)
Is c a numeric character.
char * ft_strrchr(const char *s, int c)
Finds last occurence of c in string at s.
void ft_lstadd_back(t_list **lst, t_list *new)
Adds node at pointer new to the end of the list starting at pointer pointed to by lst.
void ft_bzero(void *s, size_t n)
Write n zeroes to byte string at pointer s.
void * ft_memcpy(void *dst, const void *src, size_t n)
Copies n bytes from byte string src to byte string dst.
char * ft_strtrim(char const *s1, char const *set)
Allocates and returns a copy of s1 with any successive characters found in string set removed from th...
void ft_putnbr_fd(int n, int fd)
Converts integer n to it's ASCII representation and writes it to file descriptor fd.
char * ft_strmapi(char const *s, char(*f)(unsigned int, char))
Allocates and creates a new string from the output of function f processing each character of string ...
struct s_list t_list
Linked list node.
void ft_lstclear(t_list **lst, void(*del)(void *))
Delete every node in a list along with it's content.
size_t ft_strlcat(char *dst, const char *src, size_t dstsize)
Appends at most dstsize - ft_strlen(dst) - 1 characters of string src to the end of string dst.
char * ft_substr(char const *s, unsigned int start, size_t len)
Allocates and returns a substring of s, starting at s + start, and ending no later than s + start + l...
t_list * ft_lstmap(t_list *lst, void *(*f)(void *), void(*del)(void *))
Iterate over a list and create a new one from the results of applying f to the content of each node.
size_t ft_strlen(const char *str)
Get length of str.
char * ft_itoa(int n)
Converts integer n to an allocated ASCII string.
void ft_putchar_fd(char c, int fd)
Write character c to file descriptor fd.
t_list * ft_lstnew(void *content)
Allocates a new node, set it's content, and return it's address.
char * ft_strjoin(char const *s1, char const *s2)
Allocates enough space for and appends string s2 to string s1 and returns the new string.
int ft_isalnum(int c)
Is c an alphanumeric character.
int ft_strncmp(const char *s1, const char *s2, size_t n)
Compare up to n characters of string s1 with string s2.
int ft_lstsize(t_list *lst)
Counts the number of nodes in a list.
char ** ft_split(char const *s, char c)
Split string s by characer c into allocated array of strings, with NULL as the last element.
char * ft_strchr(const char *s, int c)
Finds first occurence of character c in string s.
int ft_tolower(int c)
Convert uppercase letter to corresponding lowercase letter.
int ft_isprint(int c)
Is c a printable character.
int ft_isascii(int c)
Is c in the ASCII character range.
void * ft_memchr(const void *s, int c, size_t n)
Finds first occurence of c in byte string at s within n bytes.
int ft_isalpha(int c)
Is c an alphabetical character.
void ft_lstdelone(t_list *lst, void(*del)(void *))
Delete a node and it's content.
void * ft_memmove(void *dst, const void *src, size_t len)
Copies len bytes from byte string src to byte string dst non-destructively.
void ft_putstr_fd(char *s, int fd)
Write string at pointer s to file descriptor fd.
void ft_striteri(char *s, void(*f)(unsigned int, char *))
Applies function f to each character of string s.
char * ft_strnstr(const char *haystack, const char *needle, size_t len)
Finds first occurence of needle in string haystack.
void * ft_calloc(size_t count, size_t size)
Allocates count * size bytes with malloc and returns a pointer to the result.
void ft_putendl_fd(char *s, int fd)
Write string at pointer s followed by a newline to file descriptor fd.
t_list * ft_lstlast(t_list *lst)
Get the last node in a list.
int ft_toupper(int c)
Convert lowercase letter to corresponding uppercase letter.
int ft_atoi(const char *str)
Converts ASCII string str to integer representation.
struct s_list * next
Pointer to the next node.
void * content
void* to the node's contents.