added temporal function to capi
Merge pull request #38 from cloudant/c_tpr

added temporal function to capi