]>
git.ipfire.org Git - people/dweismueller/ipfire-2.x.git/blob - src/hwinfo/doc/example1.c
6 int main(int argc
, char **argv
)
11 hd_data
= calloc(1, sizeof *hd_data
);
13 hd
= hd_list(hd_data
, hw_scsi
, 1, NULL
);
15 for(; hd
; hd
= hd
->next
) {
16 hd_dump_entry(hd_data
, hd
, stdout
)
19 hd_free_hd_list(hd
); /* free it */
20 hd_free_hd_data(hd_data
);