diff Meerwald-dir/coord.h @ 24:9f20bce6184e v0.7

move directories, support netpbm 11
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Fri, 20 Dec 2024 13:08:59 +0100
parents Meerwald/coord.h@be303a3f5ea8
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Meerwald-dir/coord.h	Fri Dec 20 13:08:59 2024 +0100
@@ -0,0 +1,20 @@
+#ifndef COORD_H
+#define COORD_H
+
+struct coord {
+  int x;
+  int y;
+};
+
+struct coords {
+  int count;
+  int max;
+  struct coord *values;
+};
+
+struct coords *alloc_coords(int n);
+void free_coords(struct coords *c);
+int init_coords(struct coords *c, int n);
+int add_coord(struct coords *c, int x, int y);
+
+#endif

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.