debian/external_deps/fetk/punc/src/vf2c/wsne.c
raw| 1 | #include "f2c.h" |
| 2 | #include "fio.h" |
| 3 | #include "lio.h" |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | integer |
| 9 | #ifdef KR_headers |
| 10 | s_wsne(a) cilist *a; |
| 11 | #else |
| 12 | s_wsne(cilist *a) |
| 13 | #endif |
| 14 | { |
| 15 | int n; |
| 16 | |
| 17 | if(n=c_le(a)) |
| 18 | return(n); |
| 19 | f__reading=0; |
| 20 | f__external=1; |
| 21 | f__formatted=1; |
| 22 | f__putn = x_putc; |
| 23 | L_len = LINE; |
| 24 | f__donewrec = x_wSL; |
| 25 | if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit)) |
| 26 | err(a->cierr, errno, "namelist output start"); |
| 27 | x_wsne(a); |
| 28 | return e_wsle(); |
| 29 | } |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |