mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
428641dedc
new file: projects/github.com/confluentinc/libserdes/test.c
17 lines
No EOL
382 B
C
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;
|
|
} |