duplicate context of firebird string
| 886 | |
| 887 | // duplicate context of firebird string |
| 888 | inline 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 | |
| 895 | inline char* stringDup(MemoryPool& p, const char* s, size_t l) |
| 896 | { |