2023-02-14 11:11:39 -05:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* utils.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2023/02/14 14:46:40 by cchauvet #+# #+# */
|
|
|
|
/* Updated: 2023/02/14 14:46:41 by cchauvet ### ########.fr */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#ifndef UTILS_H
|
|
|
|
# define UTILS_H
|
2023-02-01 11:28:38 -05:00
|
|
|
# include <stdlib.h>
|
|
|
|
# include "../libftx/libftx.h"
|
|
|
|
|
2023-02-06 14:41:10 -05:00
|
|
|
size_t ft_strncpy(char *dst, const char *src, size_t n);
|
2023-02-14 11:11:39 -05:00
|
|
|
int ft_is_in_quote(const char *str, size_t n);
|
|
|
|
char *ft_strreplace(char *str, const char *fill,
|
|
|
|
size_t start, size_t stop);
|
2023-02-06 14:41:10 -05:00
|
|
|
ssize_t ft_strnchr(const char *str, char c);
|
|
|
|
char *ft_getstr(const char *str, size_t n);
|
2023-02-14 11:11:39 -05:00
|
|
|
void ft_printn(const char *str, size_t n);
|
2023-02-01 11:28:38 -05:00
|
|
|
|
|
|
|
#endif
|