Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
char* strndupAllocation()
23
{
24
#ifdef CPPUTEST_USE_STRDUP_MACROS
25
return strndup(
"0123456789"
, 10);
26
#else
27
return NULL;
28
#endif
29
}
30
31
void freeAllocation(void* memory)
32
{
Callers
1
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.68