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

Function OctalToInt

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

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

Source from the content-addressed store, hash-verified

1489 * @return unsigned long long
1490 */
1491unsigned long long
1492OctalToInt(char * str)
1493{
1494 SIZE_T Len;
1495 unsigned long long Acc = 0;
1496
1497 Len = strlen(str);
1498
1499 for (int i = 0; i < Len; i++)
1500 {
1501 Acc <<= 3;
1502 Acc += (str[i] - '0');
1503 }
1504 return Acc;
1505}
1506
1507/**
1508 * @brief Converts a binary string to integer

Callers 1

ToSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected