Annotation of researchv10no/cmd/view2d/wr.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: #include "view2d.h"
        !             3: 
        !             4: view2d(fd,nx,ny,time,u,v,fixuv,pmin,pmax,p)
        !             5:   short fd, nx, ny, u, v, fixuv, pmin, pmax, p[];
        !             6:   double time;
        !             7: {
        !             8:   Header wr;
        !             9:   wr.magic1 = MAGIC;
        !            10:   wr.magic2 = 0;
        !            11:   wr.ver = 3;
        !            12:   wr.nx = nx;
        !            13:   wr.ny = ny;
        !            14:   wr.u = u;
        !            15:   wr.v = v;
        !            16:   wr.fixuv = fixuv;
        !            17:   wr.pmin = pmin;
        !            18:   wr.pmax = pmax;
        !            19:   sprintf(wr.time, "%15.8g", time);
        !            20:   write(fd,&wr,sizeof(wr));
        !            21:   write(fd,p,nx*ny*sizeof(short));
        !            22: }

unix.superglobalmegacorp.com

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