home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / FORTRAN / F2C_SRC.ZIP / F2C / LIBF77 / H_SIGN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-10  |  162 b   |  12 lines

  1. #include "f2c.h"
  2.  
  3. extern integer s_cmp();
  4.  
  5. shortint h_sign(a,b)
  6. shortint *a, *b;
  7. {
  8. shortint x;
  9. x = (*a >= 0 ? *a : - *a);
  10. return( *b >= 0 ? x : -x);
  11. }
  12.