MCPcopy Create free account
hub / github.com/ZDoom/Raze / CIsNum

Function CIsNum

source/common/console/c_expr.cpp:287–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285//==========================================================================
286
287static const char *CIsNum (const char *str)
288{
289 const char *start = str;
290
291 while (*str)
292 {
293 if (*str >= '0' && *str <= '9')
294 str++;
295 else
296 break;
297 }
298
299 return (str > start) ? str : NULL;
300}
301
302//==========================================================================
303//

Callers 1

IsFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected