Improve 2018/poikola/try.sh + format fix README.md
This commit is contained in:
1 parent
16c3b55cad
commit
c907667f3a
2 files changed
+7
-6
No files matched your search
@@ -95,7 +95,7 @@ problem.
|
||||
|
||||
The main reason for the header `unistd.h` is `getdelim(3)` but once I included it
|
||||
I also abused other functions and `#define`s. This header is mutually exclusive
|
||||
with _-std=c11_.
|
||||
with `-std=c11`.
|
||||
|
||||
The program was developed with little-endian machines; I tried to support
|
||||
big-endian too, but this support is somewhat limited.
|
||||
|
||||
+6
-5
@@ -15,11 +15,12 @@ make CC="$CC" all >/dev/null || exit 1
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
|
||||
clear
|
||||
read -r -n 1 -p "Press any key to show code (space = next page, q = quit): "
|
||||
read -r -n 1 -p "Press any key to show prog.c (space = next page, q = quit): "
|
||||
echo 1>&2
|
||||
less -EXF prog.c
|
||||
read -r -n 1 -p "Press any key to run program: "
|
||||
less -rEXFK prog.c
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./prog: "
|
||||
echo 1>&2
|
||||
./prog
|
||||
echo 1>&2
|
||||
Reference in new issue
Block a user