Tim,
Try the function ISMAX. It's documented in the unicos math and scientific
library reference(sr-2081) manual and also by doing man ismax. It
should be callable from c and most of those routines are fairly well
optimized by our developement group.
J.S.