MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / DecimalToInt

Function DecimalToInt

hyperdbg/script-engine/code/common.c:1403–1416  ·  view source on GitHub ↗

* @brief Converts an decimal string to a integer * * @param str the decimal string to convert * @return unsigned long long int */

Source from the content-addressed store, hash-verified

1401 * @return unsigned long long int
1402 */
1403unsigned long long
1404DecimalToInt(char * str)
1405{
1406 unsigned long long Acc = 0;
1407 SIZE_T Len;
1408
1409 Len = strlen(str);
1410 for (int i = 0; i < Len; i++)
1411 {
1412 Acc *= 10;
1413 Acc += (str[i] - '0');
1414 }
1415 return Acc;
1416}
1417
1418/**
1419 * @brief Converts an decimal string to a signed integer

Callers 3

FreeTempFunction · 0.85
CodeGenFunction · 0.85
ToSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected