chiark / gitweb /
Ignore mlib-bin.
[mLib] / da-test.c
index 4b1966ae7c9c9bbf4919c6b6690e54925429aefa..8c6a7bba98183dbe456a1d4e82c87b65bedae4c5 100644 (file)
--- a/da-test.c
+++ b/da-test.c
@@ -103,6 +103,10 @@ int main(void)
          puts("*RANGE*");
        else
          printf("%i\n", DA(&v)[i]);
+      } else if (strcmp(p, "first") == 0) {
+       printf("%i\n", DA_FIRST(&v));
+      } else if (strcmp(p, "last") == 0) {
+       printf("%i\n", DA_LAST(&v));
       } else if (strcmp(p, "show") == 0) {
        if (DA_LEN(&v) == 0)
          puts("*EMPTY*");