int string_to_SSP_section_t(const char* strValue, void* pValue) { if (pSimSSP_section_tVTable != 0 && pSimSSP_section_tVTable->m_pfnGetConvInfo(SptNone, SptString) == 1) { static SSP_section_t rTemp; int nResult = pSimSSP_section_tVTable->m_pfnFromType(SptString, (const void*)&strValue, &rTemp); if (nResult == 1) *((SSP_section_t*)pValue) = rTemp; return nResult; } return string_to_kcg_int(strValue, pValue); }
int compare_kcg_int_type(int* pResult, const char* toCompare, const void* pValue) { static kcg_int rTemp; const kcg_int* pCurrent = (const kcg_int*)pValue; if (string_to_kcg_int(toCompare, &rTemp) == 0) return 0; if (*pCurrent > rTemp) *pResult = 1; else if (*pCurrent < rTemp) *pResult = -1; else *pResult = 0; return 1; }
int check_kcg_int_string(const char* strValue) { static kcg_int rTemp; return string_to_kcg_int(strValue, &rTemp); }
int check_kcg_int_string(const char* str, const char** endptr) { return string_to_kcg_int(str, NULL, endptr); }