| 392 | |
| 393 | |
| 394 | rem_str* REMOTE_make_string(const SCHAR* input) |
| 395 | { |
| 396 | /************************************** |
| 397 | * |
| 398 | * R E M O T E _ m a k e _ s t r i n g |
| 399 | * |
| 400 | ************************************** |
| 401 | * |
| 402 | * Functional description |
| 403 | * Copy a given string to a permanent location, returning |
| 404 | * address of new string. |
| 405 | * |
| 406 | **************************************/ |
| 407 | const USHORT length = static_cast<USHORT>(strlen(input)); |
| 408 | rem_str* string = FB_NEW_RPT(*getDefaultMemoryPool(), length) rem_str; |
| 409 | #ifdef DEBUG_REMOTE_MEMORY |
| 410 | printf("REMOTE_make_string allocate string %x\n", string); |
| 411 | #endif |
| 412 | strcpy(string->str_data, input); |
| 413 | string->str_length = length; |
| 414 | |
| 415 | return string; |
| 416 | } |
| 417 | |
| 418 | |
| 419 | void REMOTE_release_messages( RMessage* messages) |
no test coverage detected