diff --git a/lcthw/.envrc b/lcthw/.envrc new file mode 100644 index 0000000..86426a0 --- /dev/null +++ b/lcthw/.envrc @@ -0,0 +1 @@ +export CFLAGS='-Werror -g' diff --git a/lcthw/ex1/.gitignore b/lcthw/ex1/.gitignore new file mode 100644 index 0000000..2d697d2 --- /dev/null +++ b/lcthw/ex1/.gitignore @@ -0,0 +1 @@ +ex1 diff --git a/lcthw/ex1/ex1.c b/lcthw/ex1/ex1.c new file mode 100644 index 0000000..b37124b --- /dev/null +++ b/lcthw/ex1/ex1.c @@ -0,0 +1,12 @@ +#include + +/* This is a comment. */ +int main(int argc, char *argv[]) +{ + int distance = 100; + + // this is also a comment + printf("You are %d miles away.\n", distance); + + return 0; +}