int compare_kcg_real_type(int* pResult, const char* toCompare, const void* pValue) { static kcg_real rTemp; const kcg_real* pCurrent = (const kcg_real*)pValue; if (string_to_kcg_real(toCompare, &rTemp) == 0) return 0; if (*pCurrent > rTemp) *pResult = 1; else if (*pCurrent < rTemp) *pResult = -1; else *pResult = 0; return 1; }
int check_kcg_real_string(const char* strValue) { static kcg_real rTemp; return string_to_kcg_real(strValue, &rTemp); }
int check_kcg_real_string(const char* str, const char** endptr) { return string_to_kcg_real(str, NULL, endptr); }