diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-04 23:36:19 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-04 23:36:19 +0200 |
| commit | 65cf641e9533b190db870d0cc46f2f852239ebf6 (patch) | |
| tree | df2002170b96d189493e54cb484390fb2af2a2d1 /src/algo/ft_compar_str.c | |
| parent | 42316d8393d32bd88fb8e0cba6825185f78dacd0 (diff) | |
| download | libft-65cf641e9533b190db870d0cc46f2f852239ebf6.tar.gz libft-65cf641e9533b190db870d0cc46f2f852239ebf6.tar.bz2 libft-65cf641e9533b190db870d0cc46f2f852239ebf6.zip | |
Added test for ft_strsjoin, ft_strsjoinf, ft_vecpush_safe, Added doc for algo functions, tested functions
Diffstat (limited to 'src/algo/ft_compar_str.c')
| -rw-r--r-- | src/algo/ft_compar_str.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/algo/ft_compar_str.c b/src/algo/ft_compar_str.c index 0d3e6ff..6749ab0 100644 --- a/src/algo/ft_compar_str.c +++ b/src/algo/ft_compar_str.c @@ -6,12 +6,19 @@ /* 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 */ +/* Updated: 2020/04/04 22:31:15 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft_algo.h" +/* +** \brief String comparison function +** \param s1_p Pointer to first string +** \param s2_p Pointer to second string +** \return `strcmp` of both strings +*/ + int ft_compar_str(const void *s1_p, const void *s2_p) { return (ft_strcmp(*(const char**)s1_p, *(const char**)s2_p)); |
