Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Entware/Entware
/ alloc_string
Function
alloc_string
scripts/config/lexer.lex.c:2325–2330 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2323
}
2324
2325
static void alloc_string(const char *str, int size)
2326
{
2327
text = xmalloc(size + 1);
2328
memcpy(text, str, size);
2329
text[size] = 0;
2330
}
2331
2332
static void warn_ignored_character(char chr)
2333
{
Callers
1
lexer.lex.c
File · 0.85
Calls
1
xmalloc
Function · 0.85
Tested by
no test coverage detected