MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / genstr

Function genstr

src/quicklist.c:1706–1710  ·  view source on GitHub ↗

Generate new string concatenating integer i against string 'prefix' */

Source from the content-addressed store, hash-verified

1704
1705/* Generate new string concatenating integer i against string 'prefix' */
1706static char *genstr(char *prefix, int i) {
1707 static char result[64] = {0};
1708 snprintf(result, sizeof(result), "%s%d", prefix, i);
1709 return result;
1710}
1711
1712/* main test, but callable from other files */
1713int quicklistTest(int argc, char *argv[], int accurate) {

Callers 1

quicklistTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected