Compare commits

..

2 Commits

Author SHA1 Message Date
726566bb23
Up through lcthw ex9 2024-04-16 20:46:08 -04:00
7e07054a70
Having 2024-04-16 20:45:47 -04:00
4 changed files with 18 additions and 2 deletions

1
lcthw/.gitignore vendored
View File

@ -2,3 +2,4 @@ ex1
ex3
ex7
ex8
ex9

View File

@ -1,6 +1,6 @@
CFLAGS ?= -Wall -g
GDBRUN = gdb --batch --ex run --ex bt --ex q --args
BUILD_TARGETS = ex1 ex3 ex7 ex8
BUILD_TARGETS = ex1 ex3 ex7 ex8 ex9
.PHONY: all
all: build test

View File

@ -5,7 +5,7 @@ int main(int argc, char* argv[])
int i = 0;
if (argc == 1) {
printf("You no argument.\n");
printf("You have no argument.\n");
} else if (argc > 1 && argc < 4) {
printf("Here's your arguments:\n");

15
lcthw/ex9.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
int main(int argc, char *argv[])
{
int i = 0;
while (i < 25) {
printf("%d", i);
i++;
}
// need this to add a final newline
printf("\n");
return 0;
}