Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/build
/ copy_string
Function
copy_string
v2/engine/yyacc.c:212–218 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
210
}
211
212
char * copy_string(char * s, int l)
213
{
214
char * result = (char*)malloc(l+1);
215
strncpy(result,s,l);
216
result[l] = 0;
217
return result;
218
}
219
220
char * tokenize_string(char * s)
221
{
Callers
1
main
Function · 0.85
Calls
1
malloc
Function · 0.85
Tested by
no test coverage detected