summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-16 19:36:20 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-16 19:36:20 +0100
commit02c54fe6f289901f5b356ca98a81dec78fef4f36 (patch)
tree506c43e08f4dc34ce92cb41af6539f6e73cdf68e /draw.c
parent0940cd06c4a36b4794c48ebc703559caf7d53c53 (diff)
add support for comments
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/draw.c b/draw.c
index c361acb..1c74a94 100644
--- a/draw.c
+++ b/draw.c
@@ -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;
+}