11 /* Append up to 'len' input bytes to the string 'to'.
13 * Returns the number of characters read.
16 s_read(Biobuf *fp, String *to, int len)
22 sysfatal("can't s_read a shared string");
23 for(rv = 0; rv < len; rv += n){
24 n = to->end - to->ptr;
27 n = to->end - to->ptr;
31 n = Bread(fp, to->ptr, n);