pantry/projects/github.com/confluentinc/libserdes/test.c
Andrii Riabchenko 428641dedc new file: projects/github.com/confluentinc/libserdes/package.yml
new file:   projects/github.com/confluentinc/libserdes/test.c
2023-10-30 18:33:51 -04:00

17 lines
No EOL
382 B
C

#include <err.h>
#include <stddef.h>
#include <sys/types.h>
#include <libserdes/serdes.h>
int main()
{
char errstr[512];
serdes_conf_t *sconf = serdes_conf_new(NULL, 0, NULL);
serdes_t *serdes = serdes_new(sconf, errstr, sizeof(errstr));
if (serdes == NULL)
{
errx(1, "constructing serdes: %s", errstr);
}
serdes_destroy(serdes);
return 0;
}