max


Description:

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

Example: Calculate the maximum via .max():

public static int main (string[] args) {
// Output: ``max (0, 255) = 255``
print ("max (0, 255) = %hhu\n", uint8.max (uint8.MIN, uint8.MAX));
return 0;
}

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