ack/lang/fortran/lib/libF77/h_sign.c
1991-10-07 16:59:33 +00:00

12 lines
151 B
C

#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);
}