Commit eb621af9 by trkall

Kodut66 paranus

parent 12d806ae
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include <string.h> #include <string.h>
#include "functions.c" #include "functions.c"
int MAX = 15;
int main(void) int main(void)
{ {
FILE *F1; FILE *F1;
...@@ -19,7 +21,7 @@ int main(void) ...@@ -19,7 +21,7 @@ int main(void)
Ryhm *n = malloc(100000); Ryhm *n = malloc(100000);
F1 = fopen("F1.txt", "r"); F1 = fopen("F1.txt", "r");
while(!feof(F1)) while(!feof(F1) || i <= MAX)
{ {
n = (Ryhm*)realloc(n, 350); n = (Ryhm*)realloc(n, 350);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment