Originally Posted by
stabu
Hmm... well, it's a function, not a full program. Only some variables are initialized. It runs fine on gcc. I know I'm being a bit overconcise, but I don't want to go into how to do a histogram either. I thought it would make sense to somebody who had tried to do a simple histogram at some stage. "nbu" is number of buckets.
I think 'll reply to myself and say, listen mister, go for more features, rather than more optimization .. or do it up in assembly if you're so worried about performance!