| 649 | |
| 650 | |
| 651 | static ISC_STATUS stuff_string(gen_t* gen, UCHAR sdl, const SCHAR* string) |
| 652 | { |
| 653 | /************************************** |
| 654 | * |
| 655 | * s t u f f _ s t r i n g |
| 656 | * |
| 657 | ************************************** |
| 658 | * |
| 659 | * Functional description |
| 660 | * Stuff a "thing" then a counted string. |
| 661 | * |
| 662 | **************************************/ |
| 663 | ISC_STATUS* status = gen->gen_status; |
| 664 | |
| 665 | if (stuff_sdl(gen, sdl)) |
| 666 | return status[1]; |
| 667 | if (stuff_sdl(gen, static_cast<int>(strlen(string)))) |
| 668 | return status[1]; |
| 669 | |
| 670 | while (*string) |
| 671 | { |
| 672 | if (stuff_sdl(gen, *string++)) |
| 673 | return status[1]; |
| 674 | } |
| 675 | |
| 676 | return FB_SUCCESS; |
| 677 | } |