Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p12.f56.n114.z1.fidonet.org!Chris.Gehlker From: Chris.Gehlker@p12.f56.n114.z1.fidonet.org (Chris Gehlker) Newsgroups: comp.sys.mac.programmer Subject: THINK C FILE Structure Message-ID: <30416.27493A90@stjhmc.fidonet.org> Date: 20 Nov 90 14:14:28 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:114/56.12 - AZ MAC UG, Phoenix AZ Lines: 36 For reasons of portability I want to write to the Serial ports using fwrite(). It looks as if I can do it if I can initialize a FILE correctly. In THINK C 4.0.2, FILE is defined as: typedef struct { unsignedstd : 1; unsignedbinary : 1; unsignedeof : 1; unsignederr : 1; unsigneddirty : 1; unsignedmybuf : 1; unsignedappend : 1; unsigneddelete : 1; unsignedpushed : 1; charone; unsigned charpushc; shortrefnum; char*buf; size_tsize; unsigned char*ptr; size_tcnt; fpos_tpos; fpos_tlen; void*window; int(*proc)(); } FILE; Now refnun looks like it should be assigned the value that I get from OpenDriver() but how should I initialize the rest of this stuff? -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!56.12!Chris.Gehlker Internet: Chris.Gehlker@p12.f56.n114.z1.fidonet.org