diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-12 21:39:32 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-12 21:39:32 +0000 |
commit | 6c8d74487fcf8c8418ff5205d0bc08dd99e1e34e (patch) | |
tree | 557e544d8274c8e0404d336c0e9b0e6cb36e7e72 /examples/Misc/test_read_buffer.cpp | |
parent | add7fcff0bc337851545e695aaf25c8c64b547b5 (diff) | |
download | ATCD-java-1_0_1a.tar.gz |
This commit was manufactured by cvs2svn to create tag 'java-1_0_1a'.java-1_0_1a
Diffstat (limited to 'examples/Misc/test_read_buffer.cpp')
-rw-r--r-- | examples/Misc/test_read_buffer.cpp | 30 |
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 caf7330f200..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::allocator ()->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 |