split code into multiple files
[calc.git] / format.h
diff --git a/format.h b/format.h
new file mode 100644 (file)
index 0000000..9849205
--- /dev/null
+++ b/format.h
@@ -0,0 +1,19 @@
+#ifndef __FORMAT_H__
+#define __FORMAT_H__
+
+/* global variables */
+
+extern char *format;
+extern char *minform;
+
+/* print function */
+
+void set_format (char *prompt, int precision);
+
+void free_format ();
+
+double print (double value);
+
+#endif /* __FORMAT_H__ */
+
+/* vim: set ts=4 sw=4 et: */