RSSI Data dBm

Does anybody know how to convert AT commands to C code?

I want to use the ATDB command and get the return value and save it in a variable.