diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -138,7 +138,7 @@ int main(int argc, char *argv[]) { printf("Allocating memory\n"); // Allocate array for file contents - char data[flen + 1]; + char* data = malloc(flen + 1); unsigned int i = 0; char c; printf("Reading data to memory\n"); @@ -150,6 +150,9 @@ int main(int argc, char *argv[]) { fclose(f); printf("Searching for palindromes\n"); + + find_largest_palindromes(data); + free(data); return 0; } |