Call ROOT from within C programs


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