]> git.ozlabs.org Git - ccan/blob - ccan/strgrp/test/api_test_free_cb.c
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / strgrp / test / api_test_free_cb.c
1 #include "../test/helpers.h"
2
3 static void
4 data_cb(void *data) {
5     ok1(streq("1", (char *)data));
6 }
7
8 int main(void) {
9     struct strgrp *ctx;
10
11     plan_tests(1);
12     create(ctx, DEFAULT_SIMILARITY);
13     strgrp_add(ctx, "a", (void *)"1");
14     strgrp_free_cb(ctx, &data_cb);
15     return exit_status();
16 }