| 12345678910111213141516171819202122232425 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_strnequ.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2015/11/25 20:03:58 by bchanot #+# #+# */
- /* Updated: 2015/11/28 23:33:50 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- int ft_strnequ(char const *s1, char const *s2, size_t n)
- {
- if (s1 && s2)
- {
- if (ft_strncmp(s1, s2, n) == 0)
- return (1);
- }
- else if (s1 == s2)
- return (1);
- return (0);
- }
|