MCPcopy Create free account
hub / github.com/cpputest/cpputest / strndupAllocation

Function strndupAllocation

tests/CppUTest/AllocationInCFile.c:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22char* strndupAllocation()
23{
24#ifdef CPPUTEST_USE_STRDUP_MACROS
25 return strndup("0123456789", 10);
26#else
27 return NULL;
28#endif
29}
30
31void freeAllocation(void* memory)
32{

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68