diff --git a/a.out b/a.out new file mode 100755 index 0000000..532a570 Binary files /dev/null and b/a.out differ diff --git a/getfuncs.c b/getfuncs.c index a6d0a2b..f2e4113 100644 --- a/getfuncs.c +++ b/getfuncs.c @@ -34,9 +34,11 @@ int fetchWord(char* fullword, int file_length){ /*variables*/ FILE* stream; int random = (rand() * time(NULL)) % (file_length); - char read[128]; + char read[8]; unsigned int counter = 0; int char_size = (int) sizeof(char); + int lign=0; + int offset=0; /*prog*/ printf("%d\n", random); @@ -45,11 +47,16 @@ int fetchWord(char* fullword, int file_length){ return -1; } - fseek(stream, random, 0); /*décalage*/ + for(lign=0; lign