Calculating standard deviation of fft result

I am writing a code that will scan and stop if it finds an FM station.
For this i need to calculate the standard deviation of the fft result.
is there a function built to do this? how can i perform mathametical
operations on fft resultant data ?