seahag/test/store_u32.c
2023-08-09 23:56:59 -04:00

17 lines
272 B
C

#include "bytes.h"
#include "haggis_private.h"
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
int main() {
u32 n;
FILE *fd;
n.val = 123456;
fd = fopen("output/u32", "w");
assert(store_u32(fd, &n) == 4);
fflush(fd);
fclose(fd);
}