seahag/test/store_device.c

17 lines
305 B
C
Raw Permalink Normal View History

2023-08-09 11:41:06 -04:00
#include "haggis_private.h"
#include <stdio.h>
int main() {
2024-02-11 01:09:21 -05:00
haggis_device dev;
FILE *f;
int ret;
2023-08-09 11:41:06 -04:00
dev.major.val = 42;
dev.minor.val = 69;
f = fopen("output/device", "w");
2024-02-11 01:09:21 -05:00
ret = haggis_store_device(&dev, f);
fflush(f);
2023-08-09 11:41:06 -04:00
fclose(f);
return ret;
}