MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / get_parameter

Function get_parameter

tools/cdb2sql/cdb2sql.cpp:619–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619char *get_parameter(const char **sqlstr)
620{
621 while (isspace(**sqlstr)) {
622 (*sqlstr)++;
623 }
624 const char *end = *sqlstr;
625 while (*end && !isspace(*end))
626 end++;
627 int len = end - (*sqlstr);
628 if (len < 1 || !*sqlstr) {
629 return NULL;
630 }
631 char *copy = strndup(*sqlstr, len);
632 *sqlstr = end;
633 return copy;
634}
635
636int fromhex(uint8_t *out, const uint8_t *in, size_t len)
637{

Callers 1

process_bindFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected