about summary refs log tree commit diff
path: root/src/lookup.c
diff options
context:
space:
mode:
authorhanemile <emile.hansmaennel@gmail.com>2018-01-01 18:32:25 +0100
committerhanemile <emile.hansmaennel@gmail.com>2018-01-01 18:32:25 +0100
commitf6d0ee87d389bdb9c1cbac7bc9d38dccf989165c (patch)
tree4cc6f4f8cf6e4382a81eb13474de25d589e9129c /src/lookup.c
parentaf0b25e9d5c28e6c7062602d0797b2ff983ea9d3 (diff)
[milestone] write the lookuptable to a file for further use
Diffstat (limited to 'src/lookup.c')
-rw-r--r--src/lookup.c2
1 files changed, 1 insertions, 1 deletions
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){