From 23a5e0903b80ca349efcb55622ee3d3c3989abcd Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 12 Apr 2016 04:47:46 -0400 Subject: [PATCH] ex4 --- lcthw-remnants-2/.gitignore | 1 + lcthw-remnants-2/Dockerfile | 2 +- lcthw-remnants-2/ex4.c | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 lcthw-remnants-2/ex4.c diff --git a/lcthw-remnants-2/.gitignore b/lcthw-remnants-2/.gitignore index 6d21d2b..da2db83 100644 --- a/lcthw-remnants-2/.gitignore +++ b/lcthw-remnants-2/.gitignore @@ -1,2 +1,3 @@ ex1 ex3 +ex4 diff --git a/lcthw-remnants-2/Dockerfile b/lcthw-remnants-2/Dockerfile index e039450..6a227e0 100644 --- a/lcthw-remnants-2/Dockerfile +++ b/lcthw-remnants-2/Dockerfile @@ -3,4 +3,4 @@ FROM ubuntu:xenial ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -yq -RUN apt-get install -yq build-essential git man +RUN apt-get install -yq build-essential git man curl diff --git a/lcthw-remnants-2/ex4.c b/lcthw-remnants-2/ex4.c new file mode 100644 index 0000000..7e49361 --- /dev/null +++ b/lcthw-remnants-2/ex4.c @@ -0,0 +1,14 @@ +#include + +/* Warning: This program is wrong on purpose. */ + +int main() +{ + int age = 10; + int height; + + printf("I am %d years old.\n"); + printf("I am %d inches tall.\n", height); + + return 0; +}