libowfat/buffer/buffer_seek.c
leitner 5eb1cdf888 cleanups in stralloc and buffer:
int -> long for sizes
    char -> unsigned char for strings
2004-11-25 21:29:35 +00:00

9 lines
161 B
C

#include "buffer.h"
void buffer_seek(buffer* b,unsigned long int len) {
unsigned long int n=b->p+len;
if (n<b->p) n=b->p;
if (n>b->n) n=b->n;
b->p=n;
}