Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antirez/ds4
/ xstrndup
Function
xstrndup
ds4_server.c:107–112 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
105
return false;
106
}
107
p += (size_t)n;
108
len -= (size_t)n;
109
}
110
close(fd);
111
return true;
112
}
113
114
static char *xstrndup(const char *s, size_t n) {
115
char *p = xmalloc(n + 1);
Callers
15
json_escape_n
Function · 0.70
dsml_attr
Function · 0.70
dsml_parse_leaf_param_json
Function · 0.70
split_reasoning_content
Function · 0.70
parse_generated_message_ex
Function · 0.70
dsml_attr_is_string_true
Function · 0.70
openai_tool_emit_string_value
Function · 0.70
openai_tool_start_invoke
Function · 0.70
openai_tool_start_param
Function · 0.70
anthropic_tool_emit_string_value
Function · 0.70
anthropic_tool_start_invoke
Function · 0.70
anthropic_tool_start_param
Function · 0.70
Calls
1
xmalloc
Function · 0.70
Tested by
no test coverage detected