We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7a975 commit 7049930Copy full SHA for 7049930
1 file changed
README.md
@@ -15,14 +15,16 @@ Fine. I reluctantly wrapped the C stuff in a C++ class called `RingBufC`. All th
15
```
16
// If you want to use C...
17
char *mystr = "I like C";
18
+
19
RingBuf *buf = RingBuf_new(sizeof(char*), 100);
20
buf->add(buf, &mystr);
21
22
23
24
// If you want to use the C++ wrapper
25
char *mystr = "C++ has pretty object.method() syntax";
-RingBufC buf(sizeof(char*), 100);
26
27
+RingBufC = buf(sizeof(char*), 100);
28
buf.add(&mystr);
29
30
0 commit comments