Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

min macro

The min macro compares two values and returns the smaller one. The data type can be any numeric data type, signed or unsigned. The data type of the arguments and the return value is the same.

Syntax


 min(
   value1,
   value2
);

Parameters

value1

Specifies the first of two values.

value2

Specifies the second of two values.

Return value

The return value is the smaller of the two specified values.

Remarks

The min macro is defined as follows:



#define min(a, b)  (((a) < (b)) ? (a) : (b)) 


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

 

 

Community Additions

Show:
© 2014 Microsoft