blob: 7a06bbe78687a5476a5b41eb0b573505ac28cdf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include <bowl.h>
int main()
{
// Root node which contains a list
struct bowl *root;
bowl_malloc(&root, HASH);
struct bowl *a;
data_malloc(&a, LITERAL, "Destroy capitalism");
bowl_insert_key(root, "a", a);
struct bowl *b;
data_malloc(&b, INTEGER, 1312);
bowl_insert_key(root, "b", b);
struct bowl *c;
data_malloc(&c, LITERAL, "Alerta, Antifascista!");
bowl_insert_key(root, "c", c);
return bowl_free(root);
}
|