Main Page | Namespace List | Class List | File List | Class Members | File Members | Related Pages

buffer_copy.c

Go to the documentation of this file.
00001 #include "buffer.h"
00002 
00003 int buffer_copy(buffer *bout,buffer *bin)
00004 {
00005   int n;
00006   char *x;
00007 
00008   for (;;) {
00009     n = buffer_feed(bin);
00010     if (n < 0) return -2;
00011     if (!n) return 0;
00012     x = buffer_PEEK(bin);
00013     if (buffer_put(bout,x,n) == -1) return -3;
00014     buffer_SEEK(bin,n);
00015   }
00016 }

Generated on Mon Apr 26 09:49:22 2004 for ConstantDataStore by doxygen 1.3.6-20040222