1994-10-26 18:15:35 +00:00
|
|
|
/* sequential formatted external common routines*/
|
|
|
|
#include "f2c.h"
|
|
|
|
#include "fio.h"
|
|
|
|
|
|
|
|
extern char *f__fmtbuf;
|
|
|
|
|
|
|
|
integer e_rsfe(Void)
|
|
|
|
{ int n;
|
|
|
|
n=en_fio();
|
|
|
|
f__fmtbuf=NULL;
|
|
|
|
return(n);
|
|
|
|
}
|
|
|
|
#ifdef KR_headers
|
1997-04-13 01:16:58 +00:00
|
|
|
c_sfe(a) cilist *a; /* check */
|
1994-10-26 18:15:35 +00:00
|
|
|
#else
|
1997-04-13 01:16:58 +00:00
|
|
|
c_sfe(cilist *a) /* check */
|
1994-10-26 18:15:35 +00:00
|
|
|
#endif
|
|
|
|
{ unit *p;
|
1999-02-03 17:23:49 +00:00
|
|
|
f__curunit = p = &f__units[a->ciunit];
|
1994-10-26 18:15:35 +00:00
|
|
|
if(a->ciunit >= MXUNIT || a->ciunit<0)
|
|
|
|
err(a->cierr,101,"startio");
|
|
|
|
if(p->ufd==NULL && fk_open(SEQ,FMT,a->ciunit)) err(a->cierr,114,"sfe")
|
|
|
|
if(!p->ufmt) err(a->cierr,102,"sfe")
|
|
|
|
return(0);
|
|
|
|
}
|
|
|
|
integer e_wsfe(Void)
|
1995-09-28 20:49:15 +00:00
|
|
|
{
|
1999-02-03 17:23:49 +00:00
|
|
|
int n = en_fio();
|
|
|
|
f__fmtbuf = NULL;
|
1995-09-28 20:49:15 +00:00
|
|
|
return n;
|
1994-10-26 18:15:35 +00:00
|
|
|
}
|