aboutsummaryrefslogtreecommitdiff
path: root/src/base/gz/read.c
blob: 112fe4d7eb52892a9c06f80beacd2ff32f8ccbd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "internal.h"

int
gz·read(gz·Stream *s, int sz, int n, void* buf)
{
    return gzread(s, buf, n*sz);
}

int
gz·readln(gz·Stream *s, int n, byte *buf)
{
    byte* b;
    b = gzgets(s, buf, n);

    return strlen(b);
}