diff options
Diffstat (limited to 'example')
| -rw-r--r-- | example/mk/b.sh | 2 | ||||
| -rw-r--r-- | example/mk/c.sh | 2 | ||||
| -rw-r--r-- | example/src/example.c | 10 |
3 files changed, 14 insertions, 0 deletions
| diff --git a/example/mk/b.sh b/example/mk/b.sh new file mode 100644 index 0000000..c1a9050 --- /dev/null +++ b/example/mk/b.sh | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | gcc -o ../example ../src/example.c | ||
| 2 | |||
| diff --git a/example/mk/c.sh b/example/mk/c.sh new file mode 100644 index 0000000..21713b7 --- /dev/null +++ b/example/mk/c.sh | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | rm -rf ../example | ||
| 2 | |||
| diff --git a/example/src/example.c b/example/src/example.c new file mode 100644 index 0000000..dac8c98 --- /dev/null +++ b/example/src/example.c | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | |||
| 4 | int32_t main(void); | ||
| 5 | |||
| 6 | int32_t main(void) { | ||
| 7 | printf("example\n"); | ||
| 8 | return 0; | ||
| 9 | } | ||
| 10 | |||
