libft/libft.h

50 lines
1.8 KiB
C
Raw Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/15 10:11:54 by kcolin #+# #+# */
2024-10-17 10:42:43 +02:00
/* Updated: 2024/10/17 10:19:51 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBFT_H
# define LIBFT_H
# include <unistd.h>
2024-10-15 10:44:30 +02:00
int ft_isalpha(int c);
int ft_isdigit(int c);
int ft_isalnum(int c);
int ft_isascii(int c);
int ft_isprint(int c);
size_t ft_strlen(const char *s);
void *ft_memset(void *s, int c, size_t n);
void ft_bzero(void *s, size_t n);
void *ft_memcpy(void *dest, const void *src, size_t n);
void *ft_memmove(void *dest, const void *src, size_t n);
size_t ft_strlcpy(char *dst, const char *src, size_t size);
size_t ft_strlcat(char *dst, const char *src, size_t size);
2024-10-15 11:19:02 +02:00
2024-10-16 10:28:00 +02:00
int ft_toupper(int c);
2024-10-16 10:32:29 +02:00
int ft_tolower(int c);
2024-10-16 10:28:00 +02:00
2024-10-16 10:46:16 +02:00
char *ft_strchr(const char *s, int c);
2024-10-16 10:52:03 +02:00
char *ft_strrchr(const char *s, int c);
int ft_strncmp(const char *s1, const char *s2, size_t n);
2024-10-16 10:46:16 +02:00
void *ft_memchr(const void *s, int c, size_t n);
int ft_memcmp(const void *s1, const void *s2, size_t n);
2024-10-16 14:21:59 +02:00
2024-10-16 15:59:48 +02:00
char *ft_strnstr(const char *big, const char *little, size_t len);
2024-10-16 16:14:58 +02:00
int ft_atoi(const char *nptr);
2024-10-17 10:42:43 +02:00
void *ft_calloc(size_t nmemb, size_t size);
#endif