FreeBSD/sys/kern/subr_msgbuf.c
/*
 * Copy from one message buffer to another.
 */
Copy from one message buffer to another.
Copy from one message buffer to another .
void
msgbuf_copy(struct msgbuf *src, struct msgbuf *dst)
{
	int c;
	while ((c = msgbuf_getchar(src)) >= 0)
		msgbuf_addchar(dst, c);
}
void msgbuf_copy ( struct msgbuf * src , struct msgbuf * dst ) { int c ; while ( ( c = msgbuf_getchar ( src ) ) >= 0 ) msgbuf_addchar ( dst , c ) ; }
Copy from one message buffer to another.
Copy from one message buffer to another .