Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ get2digits
Function
get2digits
lib/lua/src/lstrlib.c:1210–1216 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1208
1209
1210
static const char *get2digits (const char *s) {
1211
if (isdigit(uchar(*s))) {
1212
s++;
1213
if (isdigit(uchar(*s))) s++; /* (2 digits at most) */
1214
}
1215
return s;
1216
}
1217
1218
1219
/*
Callers
1
checkformat
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected