aboutsummaryrefslogtreecommitdiff
path: root/src/lst/ft_lstreverse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lst/ft_lstreverse.c')
-rw-r--r--src/lst/ft_lstreverse.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lst/ft_lstreverse.c b/src/lst/ft_lstreverse.c
new file mode 100644
index 0000000..c45a912
--- /dev/null
+++ b/src/lst/ft_lstreverse.c
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_lstreverse.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/01/15 12:49:14 by cacharle #+# #+# */
+/* Updated: 2020/01/15 12:51:54 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+void ft_lstreverse(t_list **lst)
+{
+ *lst = ft_lstreverse_ret(*lst);
+}