multinomial c89 compliant