max


Description:

[ CCode ( cname = "MAX" ) ]
public static short max (short a, short b)

Example: Calculate the maximum via .max():

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

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