Can i know how to write C code for converting longitude and latitude from DD to DMS and also the cardinal direction? I have no idea on it.