Spectrum dataanalysis

A linear ccd Sensor generates a dataset of the measured spectrum and i need to find the peaks and the area of the peaks.
I can do a spline interpolation and its derivative using the "GNU Scientific Library", but i do not know how to find the roots (zero points) of the 1st derivative of this spline to get the maxima.
Any idea is welcome.

wally