summaryrefslogtreecommitdiff
path: root/coord.c
diff options
context:
space:
mode:
Diffstat (limited to 'coord.c')
-rw-r--r--coord.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/coord.c b/coord.c
new file mode 100644
index 00000000..8e792db8
--- /dev/null
+++ b/coord.c
@@ -0,0 +1,9 @@
+#include "coord.h"
+
+struct coord *
+coord_get(unsigned char **p)
+{
+ struct coord *ret=(struct coord *)(*p);
+ *p += sizeof(*ret);
+ return ret;
+}