2001-05-17 02:59:29 +08:00
|
|
|
#include "config.h"
|
1998-02-01 09:37:08 +08:00
|
|
|
#ifndef NON_UNIX_STDIO
|
1998-05-19 18:52:03 +08:00
|
|
|
#define _INCLUDE_POSIX_SOURCE /* for HP-UX */
|
|
|
|
#define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
|
1998-02-01 09:37:08 +08:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#endif
|
|
|
|
#include "f2c.h"
|
|
|
|
#include "fio.h"
|
|
|
|
|
g2c.hin, [...]: Kill VOID, Void and Int.
* g2c.hin, libF77/d_cnjg.c, libF77/main.c, libF77/r_cnjg.c,
libF77/s_cat.c, libF77/s_paus.c, libF77/s_rnge.c, libF77/setarg.c,
libF77/setsig.c, libF77/signal1.h0, libI77/dfe.c, libI77/due.c,
libI77/err.c, libI77/fio.h, libI77/fmt.c, libI77/iio.c,
libI77/ilnw.c, libI77/lread.c, libI77/lwrite.c, libI77/rsfe.c,
libI77/rsli.c, libI77/rsne.c, libI77/sfe.c, libI77/sue.c,
libI77/util.c, libI77/wrtfmt.c, libI77/wsfe.c, libI77/wsle.c,
libI77/xwsne.c, libU77/date_.c: Kill VOID, Void and Int.
From-SVN: r54134
2002-06-01 09:58:10 +08:00
|
|
|
void
|
2002-06-01 20:38:32 +08:00
|
|
|
g_char (char *a, ftnlen alen, char *b)
|
1998-02-01 09:37:08 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
char *x = a + alen, *y = b + alen;
|
1998-02-01 09:37:08 +08:00
|
|
|
|
2002-06-01 20:38:32 +08:00
|
|
|
for (;; y--)
|
|
|
|
{
|
|
|
|
if (x <= a)
|
|
|
|
{
|
|
|
|
*b = 0;
|
|
|
|
return;
|
1998-02-01 09:37:08 +08:00
|
|
|
}
|
2002-06-01 20:38:32 +08:00
|
|
|
if (*--x != ' ')
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
*y-- = 0;
|
|
|
|
do
|
|
|
|
*y-- = *x;
|
|
|
|
while (x-- > a);
|
|
|
|
}
|
1998-02-01 09:37:08 +08:00
|
|
|
|
g2c.hin, [...]: Kill VOID, Void and Int.
* g2c.hin, libF77/d_cnjg.c, libF77/main.c, libF77/r_cnjg.c,
libF77/s_cat.c, libF77/s_paus.c, libF77/s_rnge.c, libF77/setarg.c,
libF77/setsig.c, libF77/signal1.h0, libI77/dfe.c, libI77/due.c,
libI77/err.c, libI77/fio.h, libI77/fmt.c, libI77/iio.c,
libI77/ilnw.c, libI77/lread.c, libI77/lwrite.c, libI77/rsfe.c,
libI77/rsli.c, libI77/rsne.c, libI77/sfe.c, libI77/sue.c,
libI77/util.c, libI77/wrtfmt.c, libI77/wsfe.c, libI77/wsle.c,
libI77/xwsne.c, libU77/date_.c: Kill VOID, Void and Int.
From-SVN: r54134
2002-06-01 09:58:10 +08:00
|
|
|
void
|
2002-06-01 20:38:32 +08:00
|
|
|
b_char (char *a, char *b, ftnlen blen)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < blen && *a != 0; i++)
|
|
|
|
*b++ = *a++;
|
|
|
|
for (; i < blen; i++)
|
|
|
|
*b++ = ' ';
|
1998-02-01 09:37:08 +08:00
|
|
|
}
|
2002-06-01 20:38:32 +08:00
|
|
|
|
1998-02-01 09:37:08 +08:00
|
|
|
#ifndef NON_UNIX_STDIO
|
2002-06-01 20:38:32 +08:00
|
|
|
long
|
|
|
|
f__inode (char *a, int *dev)
|
|
|
|
{
|
|
|
|
struct stat x;
|
|
|
|
if (stat (a, &x) < 0)
|
|
|
|
return (-1);
|
|
|
|
*dev = x.st_dev;
|
|
|
|
return (x.st_ino);
|
1998-02-01 09:37:08 +08:00
|
|
|
}
|
|
|
|
#endif
|