You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
337 B
21 lines
337 B
#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:
|