aboutsummaryrefslogtreecommitdiff
path: root/src/algo/ft_compar_str.c
blob: 0d3e6ffde8558f9e13c1c099f5f9723e66e2ae67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ft_compar_str.c                                    :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: charles <charles.cabergs@gmail.com>        +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/04/04 15:44:24 by charles           #+#    #+#             */
/*   Updated: 2020/04/04 15:46:28 by charles          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "libft_algo.h"

int	ft_compar_str(const void *s1_p, const void *s2_p)
{
	return (ft_strcmp(*(const char**)s1_p, *(const char**)s2_p));
}