2023-08-09 23:02:37 -04:00
|
|
|
#include "haggis_private.h"
|
|
|
|
#include <assert.h>
|
|
|
|
#include <md5.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
haggis_file hf;
|
|
|
|
char *f = "load_device.c";
|
|
|
|
FILE *fd;
|
|
|
|
|
2024-02-11 18:54:38 -05:00
|
|
|
assert(haggis_file_init(&hf, f, md5) == 0);
|
2023-08-09 23:02:37 -04:00
|
|
|
fd = fopen("output/store_file_md5", "w");
|
2024-02-11 18:54:38 -05:00
|
|
|
assert(haggis_store_file(&hf, fd) == 0);
|
2023-08-09 23:56:59 -04:00
|
|
|
fflush(fd);
|
2023-08-09 23:02:37 -04:00
|
|
|
fclose(fd);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|