diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
commit | d9661aebab28abc0ec4fb1e716170d347d56c168 (patch) | |
tree | ecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /examples/Misc/test_read_buffer.cpp | |
parent | ea0d28240863caf437a18071bfd03e7b146c5ade (diff) | |
download | ATCD-unlabeled-4.3.2.tar.gz |
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
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 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 |