mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 12:35:10 +03:00
17 lines
382 B
C
17 lines
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;
|
||
|
}
|