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

Function sgetc

hyperdbg/script-engine/code/scanner.c:1041–1055  ·  view source on GitHub ↗

* @brief Returns the next character in the input string * * @param str * @return CHAR the next character at the current position in the string */

Source from the content-addressed store, hash-verified

1039 * @return CHAR the next character at the current position in the string
1040 */
1041char
1042sgetc(char * str)
1043{
1044 char c = str[InputIdx];
1045
1046 if (c)
1047 {
1048 InputIdx++;
1049 return c;
1050 }
1051 else
1052 {
1053 return EOF;
1054 }
1055}
1056
1057/**
1058 * @brief Check whether a string is a keyword or not

Callers 2

GetTokenFunction · 0.85
ScriptEngineParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected