summaryrefslogtreecommitdiffstats
path: root/src/p_args_escape.c
diff options
context:
space:
mode:
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++;
+ }
+}