summaryrefslogtreecommitdiff
path: root/include/eval_arg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/eval_arg.h')
-rw-r--r--include/eval_arg.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/eval_arg.h b/include/eval_arg.h
new file mode 100644
index 0000000..a86b0d5
--- /dev/null
+++ b/include/eval_arg.h
@@ -0,0 +1,19 @@
+/*
+ * (C) Copyright 2016 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef EVAL_ARG_H
+#define EVAL_ARG_H
+
+/**
+ * eval_arg() - evaluate a command argument expression
+ *
+ * @arg: pointer to argument (usually argv[i])
+ * @end_ptr: pointer to position, where evaluation stopped. Points to '\0' if no error.
+ * @return evaluated argument
+ */
+long eval_arg(char *arg, char **end_ptr);
+
+#endif /* EVAL_ARG_H */