aboutsummaryrefslogtreecommitdiff
path: root/src/old/tests/sbuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/old/tests/sbuffer.cpp')
-rw-r--r--src/old/tests/sbuffer.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/old/tests/sbuffer.cpp b/src/old/tests/sbuffer.cpp
deleted file mode 100644
index 02798cb..0000000
--- a/src/old/tests/sbuffer.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
1#include "sbuffer.h"
2
3int main()
4{
5 SBuffer buf;
6
7 buf.write("abcdefg", 7 );
8
9 printf("tell: %ld\n", buf.tell() );
10
11 char abuf[6];
12 int nRead;
13 nRead = buf.read( abuf, 5 );
14 abuf[nRead] = '\0';
15 printf("Read %d bytes \"%s\"\n", nRead, abuf );
16
17 buf.setPos( 0 );
18 nRead = buf.read( abuf, 5 );
19 abuf[nRead] = '\0';
20 printf("Read %d bytes \"%s\"\n", nRead, abuf );
21
22 nRead = buf.read( abuf, 5 );
23 abuf[nRead] = '\0';
24 printf("Read %d bytes \"%s\"\n", nRead, abuf );
25
26}
27