summaryrefslogtreecommitdiffstats
path: root/src/p_args_escape.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-04 22:24:49 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-04 22:24:49 +0200
commit385b5c002a83d4683d29d9d4f306d929e1ad1e41 (patch)
tree57a30de3dc9da05da4b98103164a01d859266b93 /src/p_args_escape.c
parentTime to escape chars (diff)
download42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.gz
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.bz2
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.xz
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.tar.zst
42-minishell-385b5c002a83d4683d29d9d4f306d929e1ad1e41.zip
gotta do stuff
Diffstat (limited to '')
-rw-r--r--src/p_args_escape.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/p_args_escape.c b/src/p_args_escape.c
new file mode 100644
index 0000000..e6c9a24
--- /dev/null
+++ b/src/p_args_escape.c
@@ -0,0 +1,30 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* p_args_escape.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 */
+/* */
+/* ************************************************************************** */
+
+#include <stddef.h>
+
+void
+ p_args_escape_chars(char *words[])
+{
+ /* TODO: escape \ */
+ /* TODO: escape $vars */
+ /* TODO: escape $# special vars */
+ /* TODO: escape my life */
+ char **ptr;
+
+ ptr = words;
+ while (*ptr != NULL)
+ {
+ /* if (**ptr != C_SQUOTE) */
+ ptr++;
+ }
+}