Programming Challenge
Harold Naparst
harold at fmrco
Sat Dec 15 12:53:55 AEST 1990
I am trying to write a function which will return the index
of the smallest element of an array. I want the routine
to work for any type array. That is, I don't want to write
a separate routine for each type of array (real or double or
integer). How can I do this ? I tried playing around with
the GNU C typeof operator, but couldn't figure it out. Any ideas ?
Harold Naparst
(uunet!fmrco!harold)
--
Harold Naparst (uunet!fmrco!harold)
Fidelity Management Trust Co. (617)-570-2587
82 Devonshire St., #I40F The opinions expressed herein are not those
Boston, MA 02109 of my employer.
More information about the Comp.lang.c
mailing list