max


Description:

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

Example: Calculate the maximum via .max():

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

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