diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-08 13:19:56 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-08 13:19:56 +0100 |
| commit | d7229970f8910aa756d299f8bdceee7f4d1fbfbc (patch) | |
| tree | a95ff2e6bd50578d34d6449c9fde173acc0ef59c /smash/comment.c | |
| parent | e947b1459f93f11ad91f3e920676fe1b828281e7 (diff) | |
add env and make smash be able to parse files with comments
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; +} |