MCPcopy Create free account
hub / github.com/BSVino/DoubleAction / CopyString

Function CopyString

mp/src/game/server/AI_ResponseSystem.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33static CUtlSymbolTable g_RS;
34
35inline static char *CopyString( const char *in )
36{
37 if ( !in )
38 return NULL;
39
40 int len = Q_strlen( in );
41 char *out = new char[ len + 1 ];
42 Q_memcpy( out, in, len );
43 out[ len ] = 0;
44 return out;
45}
46
47#pragma pack(1)
48class Matcher

Callers 10

ResponseMethod · 0.70
ResponseClass · 0.70
CriteriaClass · 0.70
CriteriaMethod · 0.70
SetContextMethod · 0.70
ParseOneResponseMethod · 0.70
ParseOneCriterionMethod · 0.70
CopyCriteriaFromMethod · 0.70
CopyResponsesFromMethod · 0.70
CopyFieldsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected