updating repo

This commit is contained in:
Anja Freudenreich
2026-09-17 14:36:54 +02:00
parent eaa16ed84c
commit 93db739464
77 changed files with 240 additions and 28035 deletions
+33
View File
@@ -0,0 +1,33 @@
#include <stdio.h>
#include <stdlib.h>
#include "input.h"
#define MAX_WORDS 100
int main()
{
const char *filePath = "words.txt";
FILE *file = fopen(filePath, "r");
if(file != NULL)
{
char words[MAX_WORDS][MAX_WORD_LEN];
int wordCount = readWords(file, words, MAX_WORDS);
for(int i = 0; i < wordCount; i++)
{
printf("%d. Entry: %s\n", i+1, words[i]);
}
return EXIT_SUCCESS;
}
else
{
fprintf(stderr, "Could not find %s ...\n", filePath);
return EXIT_FAILURE;
}
}