source: trunk/third/gcc/libf2c/libI77/wsle.c @ 16960

Revision 16960, 668 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16959, which included commits to RCS files with non-trunk default branches.
Line 
1#include "config.h"
2#include "f2c.h"
3#include "fio.h"
4#include "fmt.h"
5#include "lio.h"
6#include "string.h"
7
8#ifdef KR_headers
9integer s_wsle(a) cilist *a;
10#else
11integer s_wsle(cilist *a)
12#endif
13{
14        int n;
15        if(n=c_le(a)) return(n);
16        f__reading=0;
17        f__external=1;
18        f__formatted=1;
19        f__putn = x_putc;
20        f__lioproc = l_write;
21        L_len = LINE;
22        f__donewrec = x_wSL;
23        if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
24                err(a->cierr, errno, "list output start");
25        return(0);
26        }
27
28integer e_wsle(Void)
29{
30        int n;
31        f__init = 1;
32        n = f__putbuf('\n');
33        f__recpos=0;
34#ifdef ALWAYS_FLUSH
35        if (!n && fflush(f__cf))
36                err(f__elist->cierr, errno, "write end");
37#endif
38        return(n);
39        }
Note: See TracBrowser for help on using the repository browser.