max function in c library