Skip to content

Commit a5da4a3

Browse files
committed
Update bsp-ls to print types
1 parent b0f0657 commit a5da4a3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/bsp-ls.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ void print_group_info(hid_t g, const char* name) {
6060

6161
printf("Group \"%s\": Version %s Binsparse matrix. Format %s, %zu x %zu.\n",
6262
full_group_path, version_string, format_string, nrows, ncols);
63+
64+
cJSON* data_types =
65+
cJSON_GetObjectItemCaseSensitive(binsparse, "data_types");
66+
assert(data_types != NULL);
67+
68+
cJSON* item;
69+
cJSON_ArrayForEach(item, data_types) {
70+
printf(" %s: %s\n", item->string, cJSON_Print(item));
71+
}
6372
}
6473

6574
H5Literate(g, H5_INDEX_NAME, H5_ITER_INC, NULL, visit_group, NULL);

0 commit comments

Comments
 (0)