| 413 | |
| 414 | |
| 415 | static void copy_exact_name (const char* from, char* to, SSHORT bsize) |
| 416 | { |
| 417 | /************************************** |
| 418 | * |
| 419 | * c o p y _ e x a c t _ n a m e |
| 420 | * |
| 421 | ************************************** |
| 422 | * |
| 423 | * Functional description |
| 424 | * Copy null terminated name ot stops at bsize - 1. |
| 425 | * |
| 426 | **************************************/ |
| 427 | const char* const from_end = from + bsize - 1; |
| 428 | char* to2 = to - 1; |
| 429 | while (*from && from < from_end) |
| 430 | { |
| 431 | if (*from != ' ') { |
| 432 | to2 = to; |
| 433 | } |
| 434 | *to++ = *from++; |
| 435 | } |
| 436 | *++to2 = 0; |
| 437 | } |
| 438 | |
| 439 | |
| 440 | static ISC_STATUS error(ISC_STATUS* status, const Arg::StatusVector& v) |
no outgoing calls
no test coverage detected