Fit routine method or fit function method

What is hist.C supposed to do ? I see you define gaussians and draw them. But there is no fitting (and no data) .
May be @moneta would have an idea about what you are trying to show with that code.