home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / sharew / f_2_c / 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.