summaryrefslogtreecommitdiffstats
path: root/src/c_utils.h
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-09-08 18:07:14 +0200
committersalad <fmoenne-@student.le-101.fr>2020-09-08 18:07:14 +0200
commite9d902e8d9475785952355e228dcffd223bac8be (patch)
treec4995c9e701f3128999849ccec88b0be84627800 /src/c_utils.h
parentadded TODO, this is a baseline before reformatting (diff)
download42-minishell-e9d902e8d9475785952355e228dcffd223bac8be.tar.gz
42-minishell-e9d902e8d9475785952355e228dcffd223bac8be.tar.bz2
42-minishell-e9d902e8d9475785952355e228dcffd223bac8be.tar.xz
42-minishell-e9d902e8d9475785952355e228dcffd223bac8be.tar.zst
42-minishell-e9d902e8d9475785952355e228dcffd223bac8be.zip
clean, ca fait ziz
Diffstat (limited to '')
-rw-r--r--src/c_utils.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/c_utils.h b/src/c_utils.h
new file mode 100644
index 0000000..967939f
--- /dev/null
+++ b/src/c_utils.h
@@ -0,0 +1,23 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* c_utils.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */
+/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef C_UTILS_H
+#define C_UTILS_H
+
+#include "s_struct.h"
+
+int16_t c_redraw_line(char *line, uint16_t cpos, t_msh *msh);
+char *c_delchar(char *str, uint16_t cpos);
+uint16_t c_get_win_size(struct winsize *ws);
+int32_t c_catch_tcaps(char *buf, char **line, t_caps *tcaps, t_msh *msh);
+
+#endif