Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ peek_char
Function
peek_char
ccan/ccan/rune/coding.c:157–163 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
155
}
156
157
static bool peek_char(const char *data, size_t len, char *c)
158
{
159
if (len == 0)
160
return false;
161
*c = *data;
162
return true;
163
}
164
165
static void drop_char(const char **data, size_t *len)
166
{
Callers
1
pull_char
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected