MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / iscfloat

Function iscfloat

src/debug.cpp:923–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921
922#ifdef WITH_SOFTFLOAT
923static bool iscfloat(TCHAR **c)
924{
925 int cnt = 0;
926 for (;;) {
927 TCHAR nc = (*c)[cnt];
928 if (!nc) {
929 break;
930 }
931 if (nc == ' ' || nc == '\t') {
932 break;
933 }
934 if (nc == '.') {
935 TCHAR nc2 = (*c)[cnt + 1];
936 if (isdigit(nc2)) {
937 return true;
938 }
939 break;
940 }
941 if (nc != '-' && nc != '+' && !isdigit(nc)) {
942 break;
943 }
944 cnt++;
945 }
946 return false;
947}
948
949static bool readfloatx(TCHAR **c, debugfloatx80 *valx80)
950{

Callers 2

checkvaltype2Function · 0.85
converterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected