summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlucasskvn <lucas.sangkhavongs@epitech.eu>2025-07-07 14:49:21 +0200
committerlucasskvn <lucas.sangkhavongs@epitech.eu>2025-07-07 14:49:21 +0200
commitd7302236417e3e88a715583f286e218493199dd3 (patch)
tree77d6f9163ca4d99f76ce69db7ec780519da298fb /include
init
Diffstat (limited to 'include')
-rw-r--r--include/libmy.h45
1 files changed, 45 insertions, 0 deletions
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 <unistd.h>
+
+#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