-
Notifications
You must be signed in to change notification settings - Fork 0
/
str.h
47 lines (43 loc) · 2.19 KB
/
str.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
37
38
39
40
41
42
43
44
45
46
47
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* str.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: scambier <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/24 16:55:08 by scambier #+# #+# */
/* Updated: 2024/12/04 17:34:01 by scambier ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STR_H
# define STR_H
# include <stddef.h>
char *ft_strchr(const char *str, int c);
size_t ft_strlcat(char *dst, const char *src, size_t size);
size_t ft_strlcpy(char *dst, const char *src, size_t size);
size_t ft_strlen(const char *str);
int ft_strncmp(const char *s1, const char *s2, size_t n);
char *ft_strrchr(const char *str, int c);
char *ft_strnstr(const char *big, const char *little, size_t len);
char *ft_strdup(const char *s);
char *ft_substr(char const *s, unsigned int start, size_t len);
char *ft_strjoin(char const *s1, char const *s2);
char *ft_strsjoin(char **strs, char *sep);
char *ft_strtrim(char const *s1, char const *set);
char **ft_split(char const *s, char c);
int ft_atoi(const char *nptr);
int ft_atoi_strict(int *out, char *in);
char *ft_itoa(int n);
char *ft_itoa_base(unsigned int k, char *base);
char *ft_strmapi(char const *s, char (*f)(unsigned int, char));
void ft_striteri(char *s, void (*f)(unsigned int, char*));
void ft_strnset(char *str, char c, int n);
int ft_strarrfree(char **strarr);
int ft_strarrlen(char **strarr);
char *ft_strchrf(char *str, int (*f)(int), int inverted);
char **ft_splitf(char *str, int (*f)(int));
int ft_strchri(char *str, char c);
int ft_atoi_base(char *str, char *base);
void ft_strcat(char **dst, char *src);
int ft_strrep(char *str, char from, char to);
#endif