diff options
Diffstat (limited to 'smash/comment.c')
| -rw-r--r-- | smash/comment.c | 6 |
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; +} |