9 readbuf(Req *r, void *s, long n)
11 r->ofcall.count = r->ifcall.count;
12 if(r->ifcall.offset >= n){
16 if(r->ifcall.offset+r->ofcall.count > n)
17 r->ofcall.count = n - r->ifcall.offset;
18 memmove(r->ofcall.data, (char*)s+r->ifcall.offset, r->ofcall.count);
22 readstr(Req *r, char *s)
24 readbuf(r, s, strlen(s));