How to Use Libjalali

About 2 years ago my friend Ashkan Ghassemi developed a Jalali Calender for use in terminal and as Eric S. Raymond says in his book The Art of Unix Programming : “Write simple parts connected by clean interfaces”, Ashkan followed Raymond and create beautiful program .

In a project I need to use that library so I get source file and install it, but there was no any documentation for developer. here I write fast tutorial :

int main (){
j_date jcal;calc_current(&jcal) ;
printf("curentdate is :%d/%d/%d\n ",jcal.year,jcal.month,jcal.day);}

and after that compile this code :
cc jcaltest.c -I/usr/local/include/jalali/ -L/usr/local/lib/ -ljalali -o jalal.bin

and run jalal.bin