max


Description:

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

Example: Calculate the maximum via .max():

public static int main (string[] args) {
// Output: ``max ('a', 'x') = x``
char max = char.max ('a', 'x');
print ("max ('a', 'x') = %c\n", max);
return 0;
}

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