9 lines
139 B
C
9 lines
139 B
C
#include "buffer.h"
|
|
|
|
void buffer_seek(buffer* b,size_t len) {
|
|
size_t n=b->p+len;
|
|
if (n<b->p) n=b->p;
|
|
if (n>b->n) n=b->n;
|
|
b->p=n;
|
|
}
|