min


Description:

[ CCode ( cname = "MIN" ) ]
public static short min (short a, short b)

Example: Calculate the minimum via .min():

public static int main (string[] args) {
// Output: ``min ('100, 900) = 100``
short min = short.min (100, 900);
print ("min (100, 900) = %hi\n", min);
return 0;
}

valac --pkg glib-2.0 short.min.vala