rbtest.c
337 Bytes
#include <stdio.h>
#include "ringbuffer.h"
#include "interface/class.h"
int
main()
{
Ringbuffer buf = new(Ringbuffer, "/rbtest", 1);
strcpy(buf->buffer + buf->bsize - 5, "Dies ist ein foobar test");
printf("%s\n", buf->buffer);
printf("%s\n", buf->buffer + buf->bsize - 5);
delete(&buf);
return 0;
}
// vim: set ts=4 sw=4: