File:  [ELWIX - Embedded LightWeight unIX -] / libelwix / example / Attic / test_lrbuf.c
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 10 15:54:16 2026 UTC (28 hours, 58 minutes ago) by misho
Branches: elwix6_13
init UT for linear ring buffer

#include <stdio.h>
#include <elwix.h>


int
main(int argc, char **argv)
{
	lrbuf_t lrb = { 0 };
	int res;

	res = lrb_init(&lrb, 32);
	printf("lrb_init(32) -> #%d\n", res);

	lrb_free(&lrb);
	printf("Done.\n");
	return 0;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>