MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / Sc_ScanString

Function Sc_ScanString

Engine/source/console/CMDscan.cpp:2341–2353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2339}
2340
2341static int Sc_ScanString(int ret)
2342{
2343 CMDtext[CMDleng - 1] = 0;
2344 if(!collapseEscape(CMDtext+1))
2345 return -1;
2346
2347 dsize_t bufferLen = dStrlen( CMDtext );
2348 char* buffer = ( char* ) consoleAlloc( bufferLen );
2349 dStrcpy( buffer, CMDtext + 1, bufferLen );
2350
2351 CMDlval.str = MakeToken< char* >( buffer, lineIndex );
2352 return ret;
2353}
2354
2355static int Sc_ScanIdent()
2356{

Callers 1

CMDscan.cppFile · 0.85

Calls 4

collapseEscapeFunction · 0.85
consoleAllocFunction · 0.85
dStrcpyFunction · 0.85
dStrlenFunction · 0.50

Tested by

no test coverage detected