aboutsummaryrefslogtreecommitdiff
path: root/src/algo/ft_compar_int.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-10 02:22:33 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-10 02:22:33 +0100
commit48f43e34e9beafbc76a85c6f6874aae051981c72 (patch)
tree6bc73d0537019932fd0478fc074de2d235134002 /src/algo/ft_compar_int.c
parent0acdc4fec5cae4e619d0f4f8bd67e171bffa110e (diff)
parenta5b068767440327f910dfa815be12ff4c0d94309 (diff)
downloadlibft-48f43e34e9beafbc76a85c6f6874aae051981c72.tar.gz
libft-48f43e34e9beafbc76a85c6f6874aae051981c72.tar.bz2
libft-48f43e34e9beafbc76a85c6f6874aae051981c72.zip
Merge branch 'push_swap'
Diffstat (limited to 'src/algo/ft_compar_int.c')
-rw-r--r--src/algo/ft_compar_int.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/algo/ft_compar_int.c b/src/algo/ft_compar_int.c
new file mode 100644
index 0000000..848dc71
--- /dev/null
+++ b/src/algo/ft_compar_int.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_compar_int.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/01/19 08:24:43 by cacharle #+# #+# */
+/* Updated: 2020/01/19 08:27:38 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+int ft_compar_int(const void *a, const void *b)
+{
+ return (*(int*)a - *(int*)b);
+}