From e28293e5bde5f9d3c9dafbf31fcb01ae2f277609 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 15 Apr 2024 14:30:58 -0400 Subject: [PATCH] Back to having fun with LCTHW --- lcthw/.envrc | 1 + lcthw/ex1/.gitignore | 1 + lcthw/ex1/ex1.c | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 lcthw/.envrc create mode 100644 lcthw/ex1/.gitignore create mode 100644 lcthw/ex1/ex1.c 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; +}