summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2009-03-04 17:05:42 +0000
committerThomas White <taw27@cam.ac.uk>2009-03-04 17:05:42 +0000
commit244303f588f9c4797836e062d0576d85a027ab2a (patch)
tree250b936e2d82721759aa89d8f2ce35111b81d7e4 /util.h
Initial import
Diffstat (limited to 'util.h')
-rw-r--r--util.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..20e6a37
--- /dev/null
+++ b/util.h
@@ -0,0 +1,32 @@
+/*
+ * util.h
+ *
+ * Utility stuff
+ *
+ * (c) 2009 Thomas White <taw27@cam.ac.uk>
+ *
+ * Triclinator - solve nasty triclinic unit cells
+ *
+ */
+
+#ifndef UTIL_H
+#define UTIL_H
+
+typedef struct
+{
+ signed int h1;
+ signed int k1;
+ signed int l1;
+
+ signed int h2;
+ signed int k2;
+ signed int l2; /* Or zero */
+
+ double meas;
+ double esd;
+} MVal;
+
+extern double read_value(const char *text);
+extern int is_dspacing(MVal val);
+
+#endif /* UTIL_H */