aboutsummaryrefslogtreecommitdiff
path: root/smash/comment.c
diff options
context:
space:
mode:
Diffstat (limited to 'smash/comment.c')
-rw-r--r--smash/comment.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/smash/comment.c b/smash/comment.c
new file mode 100644
index 0000000..8171cf1
--- /dev/null
+++ b/smash/comment.c
@@ -0,0 +1,6 @@
+#include "comment.h"
+
+void remove_comment(char *line) {
+ while (*line && *line != '#') ++line;
+ *line = 0;
+}