MCPcopy Create free account
hub / github.com/ZDoom/Raze / NewStringProd

Function NewStringProd

source/common/console/c_expr.cpp:308–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306//==========================================================================
307
308static FStringProd *NewStringProd (const char *str)
309{
310 FStringProd *prod = (FStringProd *)M_Malloc (sizeof(FStringProd)+strlen(str));
311 prod->Type = PROD_String;
312 strcpy (prod->Value, str);
313 return prod;
314}
315
316//==========================================================================
317//

Callers 3

ParseExpressionFunction · 0.85
DoubleToStringFunction · 0.85
ProdAddStrFunction · 0.85

Calls 1

M_MallocFunction · 0.85

Tested by

no test coverage detected