diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-13 00:21:27 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-13 00:21:27 +0000 |
commit | f39c0a4ad0b658c21e1d50c01e4b1492e9f8337e (patch) | |
tree | d393771195035ca61cae2c2bd9597086ffe591b2 /examples/Misc/test_read_buffer.cpp | |
parent | 0a421daaecba19a6915296cae0434c606619432f (diff) | |
download | ATCD-JACE-1_4.tar.gz |
This commit was manufactured by cvs2svn to create tag 'JACE-1_4'.JACE-1_4
Diffstat (limited to 'examples/Misc/test_read_buffer.cpp')
-rw-r--r-- | examples/Misc/test_read_buffer.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/Misc/test_read_buffer.cpp b/examples/Misc/test_read_buffer.cpp deleted file mode 100644 index 005509d3896..00000000000 --- a/examples/Misc/test_read_buffer.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// $Id$ - -#include "ace/Service_Config.h" -#include "ace/Read_Buffer.h" - -int -main (int argc, char *argv[]) -{ - int handle = argc > 1 ? ACE_OS::open (argv[1], O_RDONLY) : 0; - int term = argc > 2 ? ACE_OS::atoi (argv[2]) : EOF; - int search = argc > 3 ? ACE_OS::atoi (argv[3]) : '\n'; - int replace = argc > 4 ? ACE_OS::atoi (argv[4]) : '\0'; - - ACE_Read_Buffer rb (handle); - - char *buf; - - while ((buf = rb.read (term, search, replace)) != 0) - { - ACE_OS::write (1, buf, rb.size ()); - ACE_Allocator::instance ()->free (buf); - } - return 0; -} |