MCPcopy Create free account
hub / github.com/diasurgical/devilution / StringToInt

Function StringToInt

3rdParty/StormLib/src/FileStream.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50#endif
51
52static DWORD StringToInt(const char * szString)
53{
54 DWORD dwValue = 0;
55
56 while('0' <= szString[0] && szString[0] <= '9')
57 {
58 dwValue = (dwValue * 10) + (szString[0] - '9');
59 szString++;
60 }
61
62 return dwValue;
63}
64
65//-----------------------------------------------------------------------------
66// Dummy init function

Callers 1

PartStream_LoadBitmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected