summaryrefslogtreecommitdiff
path: root/src/bin/lineplot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/lineplot.c')
-rw-r--r--src/bin/lineplot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/lineplot.c b/src/bin/lineplot.c
index 781a85a..141f34d 100644
--- a/src/bin/lineplot.c
+++ b/src/bin/lineplot.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#define WIDTH 39
#define HEIGHT 24
char buff[WIDTH*HEIGHT*4];
@@ -15,4 +16,5 @@ int main(int argc,char *argv[]) {
while(scanf("%d %d %d %d",&x1,&y1,&x2,&y2) == 4)
draw_line((x1+8)*2,(y1+8)*2,(x2+8)*2,(y2+8)*2);
for(y=0;y<HEIGHT*2;y++,write(1,"\n",1)) write(1,buff+(y*WIDTH*2),WIDTH*2);
+ return 0;
}