seahag/test/store_file_md5.c
2023-08-09 23:02:37 -04:00

17 lines
336 B
C

#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;
assert(haggis_file_init(f, &hf, md5) == 0);
fd = fopen("output/store_file_md5", "w");
assert(haggis_store_file(fd, &hf) == 0);
fclose(fd);
return 0;
}