summaryrefslogtreecommitdiff
path: root/docommand.c
diff options
context:
space:
mode:
Diffstat (limited to 'docommand.c')
-rw-r--r--docommand.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/docommand.c b/docommand.c
new file mode 100644
index 0000000..70de990
--- /dev/null
+++ b/docommand.c
@@ -0,0 +1,16 @@
+typedef struct clean_string {int length; char chars [1]; } *CleanString;
+
+# define Clean(ignore)
+# include "docommand.h"
+/*
+ Clean string
+ ============
+*/
+
+extern int do_command (char *command);
+
+int
+DoCommandNullTerminated (CleanString command)
+{
+ return (do_command (command->chars));
+} /* DoCommandNullTerminated */