min


Description:

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

Example: Calculate the minimum via .min():

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

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