73 if((str = buffer) == NULL || n + 1 > len)
75 if(fread(str, 1, n, in) != n) {
83 size_t read_bcpl(FILE *in,
char *buffer,
size_t maxlen,
size_t wanted)
88 if(maxlen && i > maxlen)
90 if(fread(buffer, i, 1, in) != 1)
104 if(maxlen && i > maxlen)
106 buffer = (
char *)malloc(i + 1);
109 if(fread(buffer, i, 1, in) != 1) {
157 len = ptr - buf->
data;
165 if(length) *length = len;