* Copy from one message buffer to another. */
| 407 | * Copy from one message buffer to another. |
| 408 | */ |
| 409 | void |
| 410 | msgbuf_copy(struct msgbuf *src, struct msgbuf *dst) |
| 411 | { |
| 412 | int c; |
| 413 | |
| 414 | while ((c = msgbuf_getchar(src)) >= 0) |
| 415 | msgbuf_addchar(dst, c); |
| 416 | } |
no test coverage detected