Server 0.0.1
HTTP/REST server implementation

src/cbuf/inc_write.c

Go to the documentation of this file.
00001 
00023 #include <sys/types.h>
00024 
00025 #include "cbuf.h"
00026 
00027 void
00028 cbufIncWrite(Cbuf this, size_t n)
00029 {
00030         this->write += n;
00031         this->write  = (this->write >= this->bsize)?
00032                 this->write - this->bsize : this->write;
00033         this->bused += n;
00034 }
00035 
00036 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines