| 2600 | // |
| 2601 | |
| 2602 | static void put_string(gpre_req* request, USHORT ddl_operator, const TEXT* string, USHORT length) |
| 2603 | { |
| 2604 | |
| 2605 | STUFF_CHECK(request, length); |
| 2606 | |
| 2607 | if (ddl_operator) |
| 2608 | { |
| 2609 | request->add_byte(ddl_operator); |
| 2610 | request->add_word(length); |
| 2611 | } |
| 2612 | else |
| 2613 | request->add_byte(length); |
| 2614 | |
| 2615 | |
| 2616 | if (string != NULL) |
| 2617 | { |
| 2618 | while (length--) |
| 2619 | request->add_byte(*string++); |
| 2620 | } |
| 2621 | } |
| 2622 | |
| 2623 | |
| 2624 | //____________________________________________________________ |
no test coverage detected