From f6d0ee87d389bdb9c1cbac7bc9d38dccf989165c Mon Sep 17 00:00:00 2001 From: hanemile Date: Mon, 1 Jan 2018 18:32:25 +0100 Subject: [milestone] write the lookuptable to a file for further use --- src/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lookup.c') diff --git a/src/lookup.c b/src/lookup.c index ef13a05..01b5508 100644 --- a/src/lookup.c +++ b/src/lookup.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[] ){ int x = atoi(argv[1]); for(int i = 0; i < x; i++){ - printf("%d, %f\n", i, phi(i)); + fprintf(fp, "%d, %f\n", i, phi(i)); } // for(int i = 0; i < 1e7; i = i + 1e4){ -- cgit 1.4.1