File:  [Research Unix] / researchv10no / cmd / ccom / vax / tests / Z.i
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

struct text {
    int fd; 
    char file;
    short cnt,extra;
    unsigned char *pnt;
    unsigned char buf[1];
};
int blankline(tex)
struct text *tex;
{
    int c, i, n, found;
    n = found + ((i)?*tex->pnt++:get());
    for (;;) {
       c= (tex->cnt>0?tex->pnt[0]:peek(0,tex));
       if (c == ' ' || c == '\n' || c == '\t')  ((0<tex->cnt--)?*tex->pnt++:get(tex));
       else return(1);
       }
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.