r_dim.c 214 B

12345678910111213141516
  1. #include "f2c.h"
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #ifdef KR_headers
  6. double r_dim(a,b) real *a, *b;
  7. #else
  8. double r_dim(real *a, real *b)
  9. #endif
  10. {
  11. return( *a > *b ? *a - *b : 0);
  12. }
  13. #ifdef __cplusplus
  14. }
  15. #endif