correct convertion from non decimal base
[calc.git] / program.c
index a178018330096877d930622067f2f2d3427af1bb..b93a90cb299538f1dc0b79b0ae2223baba7c6021 100644 (file)
--- a/program.c
+++ b/program.c
@@ -132,11 +132,11 @@ double call (int id, int nbargs, element_t **args)
 void list ()
 {
     int i;
-    fprintf (stdout, "programs:");
+    printf ("programs:");
     for (i = 0; i < nb_programs; i++) {
-        fprintf (stdout, " %d", programs[i]->id);
+        printf (" %d", programs[i]->id);
     }
-    fprintf (stdout, "\n");
+    printf ("\n");
 }
 
 void edit (int id)
@@ -153,7 +153,7 @@ void edit (int id)
         free (edit_line);
     }
     edit_line = strdup (programs[n]->string);
-    //fprintf (stdout, "edit: %s\n", programs[n]->string);
+    //printf ("edit: %s\n", programs[n]->string);
 }
 
 void savestring (int id, char *string)