ack/lang/fortran/lib/libF77/h_sign.c

12 lines
151 B
C
Raw Normal View History

1991-10-07 16:59:33 +00:00
#include "f2c.h"
extern integer s_cmp();
shortint h_sign(a,b)
shortint *a, *b;
{
shortint x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}