summaryrefslogtreecommitdiff
path: root/util.h
blob: 20e6a37358e32f88b3e2be90052acbd73efa5d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 */