3458b4a4d85638358a1010914fb3e17fa15793a0
[panamaz] / test-api / api.c
1
2 #include <stdio.h>
3 #include "api.h"
4
5 void print_data(struct data *data) {
6         while (data) {
7                 printf("%p: a=%d b=%d c=%d d=%d", data, data->a, data->b, data->c, data->d);
8                 if (data->test_a)
9                         printf(" data->test_a()=%d", data->test_a());
10                 printf("\n");
11                 data = data->next;
12         }
13 }