How to get value-formula

In C API, how to get the Value-formula text from CDFIELD?In doc library categories uses the value-formula to fill the choices and I need that formula using CDFIELD record? How to do so?

Thank in advance