diff options
Diffstat (limited to 'ft_strnequ.c')
| -rw-r--r-- | ft_strnequ.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ft_strnequ.c b/ft_strnequ.c new file mode 100644 index 0000000..6eb58bf --- /dev/null +++ b/ft_strnequ.c @@ -0,0 +1,6 @@ +#include "libft.h" + +int ft_strnequ(char const *s1, char const *s2, size_t n) +{ + return (ft_strncmp(s1, s2, n) == 0); +} |
