min

Returns the smaller of two integers

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:Mathematical Computation

Syntax

  #include <stdlib.h>  
   
  int min  (  
     int   a,   
     int   b);
  

Parameters

a
(IN) Specifies the first integer.
b
(IN) Specifies the second integer.

Return Values

The min function returns the smaller of the two integers.

See Also

max

Example

  #include <stdlib.h>  
   
  external int ComputeValue1 (void);  
  external int ComputeValue2 (void);  
   
  main()  
  {  
     int minValue;  
     value1 = ComputeValue1();  
     value2 = ComputeValue2();  
     minValue = min (value1, value2);  
  }