| [2] | 1 | #include "config.h"
|
|---|
| 2 | #ifndef NON_UNIX_STDIO
|
|---|
| 3 | #define _INCLUDE_POSIX_SOURCE /* for HP-UX */
|
|---|
| 4 | #define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
|
|---|
| 5 | #include <sys/types.h>
|
|---|
| 6 | #include <sys/stat.h>
|
|---|
| 7 | #endif
|
|---|
| 8 | #include "f2c.h"
|
|---|
| 9 | #include "fio.h"
|
|---|
| 10 |
|
|---|
| 11 | VOID
|
|---|
| 12 | #ifdef KR_headers
|
|---|
| 13 | g_char(a,alen,b) char *a,*b; ftnlen alen;
|
|---|
| 14 | #else
|
|---|
| 15 | g_char(char *a, ftnlen alen, char *b)
|
|---|
| 16 | #endif
|
|---|
| 17 | {
|
|---|
| 18 | char *x = a + alen, *y = b + alen;
|
|---|
| 19 |
|
|---|
| 20 | for(;; y--) {
|
|---|
| 21 | if (x <= a) {
|
|---|
| 22 | *b = 0;
|
|---|
| 23 | return;
|
|---|
| 24 | }
|
|---|
| 25 | if (*--x != ' ')
|
|---|
| 26 | break;
|
|---|
| 27 | }
|
|---|
| 28 | *y-- = 0;
|
|---|
| |
|---|