#include <stdlib.h>
int main()
{
char* inStr = "123.4567";
char* endptr;
char* loc = strchr(inStr, '.');
long mantissa = strtod(loc+1, endptr);
long whole = strtod(inStr, endptr);
printf("whole: %d \n", whole);
printf("mantissa: %d", mantissa);
return 0;
}