libft: add ft_strcmp function

This commit is contained in:
Khaïs COLIN 2025-02-13 15:28:38 +01:00
parent 897f6c6a6b
commit aad17031a8
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
3 changed files with 26 additions and 2 deletions

View file

@ -6,7 +6,7 @@
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/17 16:06:09 by jguelen #+# #+# */
/* Updated: 2025/01/07 18:10:15 by jguelen ### ########.fr */
/* Updated: 2025/02/13 15:27:21 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -131,6 +131,7 @@ int ft_toupper(int c);
int ft_tolower(int c);
char *ft_strchr(const char *s, int c);
char *ft_strrchr(const char *s, int c);
int ft_strcmp(const char *s1, const char *s2);
int ft_strncmp(const char *s1, const char *s2, size_t n);
void *ft_memchr(const void *s, int c, size_t n);
int ft_memcmp(const void *s1, const void *s2, size_t n);