diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-16 19:36:20 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-16 19:36:20 +0100 |
commit | 02c54fe6f289901f5b356ca98a81dec78fef4f36 (patch) | |
tree | 506c43e08f4dc34ce92cb41af6539f6e73cdf68e /draw.c | |
parent | 0940cd06c4a36b4794c48ebc703559caf7d53c53 (diff) |
add support for comments
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -508,3 +508,12 @@ void redo_change(){ redraw(); } + +/** Comments **/ + +void get_comment(FILE *fc){ + char c; + redraw(); + while((c = fgetc(fc)) != EOF && c != '\n'); + mode = MOVE; +} |