xref: /original-bsd/old/talk/talkd/print.c (revision 8545e61f)
1 /*
2  * Copyright (c) 1983 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  */
6 
7 #ifndef lint
8 static char sccsid[] = "@(#)print.c	5.1 (Berkeley) 6/6/85";
9 #endif not lint
10 
11 /* debug print routines */
12 
13 #include <stdio.h>
14 #include "ctl.h"
15 
16 print_request(request)
17 	CTL_MSG *request;
18 {
19     	extern FILE *debugout;
20 
21 	fprintf(debugout
22 		, "type is %d, l_user %s, r_user %s, r_tty %s\n"
23 		, request->type, request->l_name, request->r_name
24 		, request->r_tty);
25 	fprintf(debugout, "		id = %d\n", request->id_num);
26 	fflush(debugout);
27 }
28 
29 print_response(response)
30 	CTL_RESPONSE *response;
31 {
32     	extern FILE *debugout;
33 
34 	fprintf(debugout
35 		, "type is %d, answer is %d, id = %d\n\n", response->type
36 		, response->answer, response->id_num);
37 	fflush(debugout);
38 }
39