diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-02-11 05:29:41 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-02-11 05:29:41 +0000 |
| commit | f4b191f0ea396b58465bfba40749977780a3af58 (patch) | |
| tree | 891490e91ab3b67524be67b2b71c85d84fd2f92a /src/old/tests/sbuffer.cpp | |
| parent | 292ae9453e7fdb2f1023ed9dfc99cbcd751f8b90 (diff) | |
| download | libbu++-f4b191f0ea396b58465bfba40749977780a3af58.tar.gz libbu++-f4b191f0ea396b58465bfba40749977780a3af58.tar.bz2 libbu++-f4b191f0ea396b58465bfba40749977780a3af58.tar.xz libbu++-f4b191f0ea396b58465bfba40749977780a3af58.zip | |
Just removing some things that are cluttering up the source tree.
Diffstat (limited to '')
| -rw-r--r-- | src/old/tests/sbuffer.cpp | 27 |
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 | |||
| 3 | int 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 | |||
