summaryrefslogtreecommitdiff
path: root/examples/Misc/test_read_buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Misc/test_read_buffer.cpp')
-rw-r--r--examples/Misc/test_read_buffer.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/Misc/test_read_buffer.cpp b/examples/Misc/test_read_buffer.cpp
deleted file mode 100644
index c661e4f1159..00000000000
--- a/examples/Misc/test_read_buffer.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#include "ace/Service_Config.h"
-// $Id$
-
-#include "ace/Read_Buffer.h"
-
-int
-main (int argc, char *argv[])
-{
- int handle = argc > 1 ? ::open (argv[1], O_RDONLY) : 0;
- int term = argc > 2 ? ::atoi (argv[2]) : EOF;
- int search = argc > 3 ? ::atoi (argv[3]) : '\n';
- int replace = argc > 4 ? ::atoi (argv[4]) : '\0';
-
- ACE_Read_Buffer rb (handle);
-
- char *buf;
-
- while ((buf = rb.read (term, search, replace)) != 0)
- {
- ::write (1, buf, rb.size ());
- ACE_Service_Config::alloc ()->free (buf);
- }
- return 0;
-}
-
-#if 0
-#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
-template class ACE_Stream<ACE_Null_Mutex, ACE_Null_Condition_Mutex>;
-#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
-#endif