version 1.16, 2005/07/26 20:58:44 |
version 1.17, 2005/07/29 17:04:42 |
|
|
* of the buffer. Instead, they are returned and should be freed later using |
* of the buffer. Instead, they are returned and should be freed later using |
* free(). |
* free(). |
*/ |
*/ |
void* |
void * |
cvs_buf_release(BUF *b) |
cvs_buf_release(BUF *b) |
{ |
{ |
u_char *tmp; |
u_char *tmp; |
|
|
* |
* |
* Peek at the contents of the buffer <b> at offset <off>. |
* Peek at the contents of the buffer <b> at offset <off>. |
*/ |
*/ |
const void* |
const void * |
cvs_buf_peek(BUF *b, size_t off) |
cvs_buf_peek(BUF *b, size_t off) |
{ |
{ |
if (off >= b->cb_len) |
if (off >= b->cb_len) |