--- al_test.c 2002/11/28 15:12:40 1.17
+++ al_test.c 2002/11/28 16:11:49 1.18
@@ -149,6 +149,7 @@
al_t *al, *al2, *al3, *al4;
char baf[] = "Mittendrin\n";
int i;
+ size_t off, span;
al_create(&al);
al_create(&al2);
@@ -185,6 +186,10 @@
printf("setlabel result: %d (%s)\n\n",rc,al_error(rc));
checklen("COPY",al4);
+ rc = al_spanlabel(al4, 8, al_bytes(al), LABEL, &off, &span);
+ printf("spanlabel result: %d (%s)\n\n",rc,al_error(rc));
+ printf("offset = %d, span = %d\n",off,span);
+
DUMP("SPLICED",al);
print("SPLICED", al);
|