MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / stringDup

Function stringDup

src/jrd/jrd.h:888–893  ·  view source on GitHub ↗

duplicate context of firebird string

Source from the content-addressed store, hash-verified

886
887// duplicate context of firebird string
888inline char* stringDup(MemoryPool& p, const Firebird::string& s)
889{
890 char* rc = (char*) p.allocate(s.length() + 1 ALLOC_ARGS);
891 strcpy(rc, s.c_str());
892 return rc;
893}
894
895inline char* stringDup(MemoryPool& p, const char* s, size_t l)
896{

Callers

nothing calls this directly

Calls 3

allocateMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected