summaryrefslogtreecommitdiff
path: root/double-error.h
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-16 13:41:52 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:55:53 +0100
commit8145ba753df183f0d48cd6e9cc5a01b215eb31dc (patch)
tree6ab91cd3774bb42d55c196db26387f67bf082da3 /double-error.h
parent5c0dc646b78e2d7ef25088ac78397e2ed613cba1 (diff)
Properly use header files and change return type for conversion from bool to int.
Diffstat (limited to 'double-error.h')
-rw-r--r--double-error.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/double-error.h b/double-error.h
index 27894c3..719b8c6 100644
--- a/double-error.h
+++ b/double-error.h
@@ -1,3 +1,6 @@
+#ifndef DOUBLE_ERROR_H
+#define DOUBLE_ERROR_H
+
#include <stdbool.h>
typedef struct {double v; double e;} double_error;
@@ -26,6 +29,8 @@ double_error power(double_error,double_error);
double to_double(double_error);
-bool to_string(char*,double_error);
+int to_string(char*,double_error);
+
+int root_to_string(char*,double_error,double_error);
-bool root_to_string(char*,double_error,double_error);
+#endif