We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0102140 commit 7fc01b4Copy full SHA for 7fc01b4
README
@@ -27,10 +27,8 @@ You should see some output like:
27
( 3 ( 1 ( 0 . 0 ) 1 ( 0 . 0 ) 17 5 ) 4 21 )
28
29
Then run it, with no second argument lispkit will read the input
30
-from stdin. Type a number e.g. 9, press enter, then ctrl-d, and
31
-the result will be printed to stdout:
+from stdin.
32
33
- ./lispkit examples/square.o
34
- 9
35
- 81
+ echo 5 | ./lispkit examples/square.o
+ 25
36
main.c
@@ -73,6 +73,7 @@ main(int argc, char *argv[])
73
fp[fpi] = fopen(argv[arg], "ra");
74
if (fp[fpi] == NULL || ferror(fp[fpi]) != 0) {
75
printf("Could not load '%s': %s\n", argv[arg], strerror(errno));
76
+ exit(-1);
77
}
78
79
0 commit comments