From d7302236417e3e88a715583f286e218493199dd3 Mon Sep 17 00:00:00 2001 From: lucasskvn Date: Mon, 7 Jul 2025 14:49:21 +0200 Subject: init --- include/libmy.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 include/libmy.h (limited to 'include') diff --git a/include/libmy.h b/include/libmy.h new file mode 100644 index 0000000..e1ba9b2 --- /dev/null +++ b/include/libmy.h @@ -0,0 +1,45 @@ +/* +** EPITECH PROJECT, 2024 +** libmy.h +** File description: +** libmy.h for lib +*/ +#include + +#ifndef LIBMY_H + #define LIBMY_H + +void my_putchar(char c); +int my_isneg(int nb); +int my_put_nbr(int nb); +void my_swap(int *a, int *b); +int my_putstr(char const *str); +int my_strlen(char const *str); +int my_getnbr(char const *str); +void my_sort_int_array(int *tab, int size); +int my_compute_power_rec(int nb, int power); +int my_compute_square_root(int nb); +int my_is_prime(int nb); +int my_find_prime_sup(int nb); +char *my_strcpy(char *dest, char const *src); +char *my_strncpy(char *dest, char const *src, int n); +char *my_revstr(char *str); +char *my_strstr(char *str, char const *to_find); +int my_strcmp(char const *s1, char const *s2); +int my_strncmp(char const *s1, char const *s2, int n); +char *my_strupcase(char *str); +char *my_strlowcase(char *str); +char *my_strcapitalize(char *str); +int my_str_isalpha(char const *str); +int my_str_isnum(char const *str); +int my_str_islower(char const *str); +int my_str_isupper(char const *str); +int my_str_isprintable(char const *str); +int my_showstr(char const *str); +int my_showmem(char const *str, int size); +char *my_strcat(char *dest, char const *src); +char *my_strncat(char *dest, char const *src, int nb); +char *my_strdup(char const *src); +char **my_str_to_word_array(char const *str); + +#endif // LIBMY_H -- cgit v1.2.3