Today I rewrote
int drawBars(const char * barMeans, int barNumber, const double maxValue, const double currentValue);
to
int drawBars(const char * barMeans, int barNumber, const double * ptr_maxValue, const double * ptr_currentValue) ;
and I am really proud of me!