| 2576 | // |
| 2577 | |
| 2578 | static void put_short_cstring(gpre_req* request, USHORT ddl_operator, const TEXT* string) |
| 2579 | { |
| 2580 | SSHORT length = 0; |
| 2581 | if (string != NULL) |
| 2582 | length = static_cast<SSHORT>(strlen(string)); |
| 2583 | |
| 2584 | STUFF_CHECK(request, length); |
| 2585 | |
| 2586 | request->add_byte(ddl_operator); |
| 2587 | request->add_byte(length); |
| 2588 | |
| 2589 | if (string != NULL) |
| 2590 | { |
| 2591 | while (length--) |
| 2592 | request->add_byte(*string++); |
| 2593 | } |
| 2594 | } |
| 2595 | |
| 2596 | |
| 2597 | //____________________________________________________________ |
no test coverage detected