Call ROOT from within C programs

Hi,

I’m programming in C and I need to plot histograms or graphics of data produced by my programs.
I was wondering if/how it’s possible to call root from within my C program: I don’t want to call a root macro, but define all the operations explicitly in my .c file.

Thank you

http://root.cern.ch/drupal/content/how-compile-and-link-root-libraries
http://root.cern.ch/download/doc/ROOTUsersGuideHTML/ch01s06.html#d5e612
http://root.cern.ch/download/doc/ROOTUsersGuideHTML/ch20s02.html