extract digits from latitude and longitude

Consider the following procedues:

  • convert value to cstring.
  • split the cstring by using strncpy().
  • ...
  • profit.