add `dx' to enable DECCTLQ (from muller@nprdc.arpa)
[unix-history] / usr / src / libexec / talkd / print.c
CommitLineData
d0aeaf5a
DF
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
963ce42e 7#ifndef lint
d0aeaf5a
DF
8static char sccsid[] = "@(#)print.c 5.1 (Berkeley) %G%";
9#endif not lint
1f187e51
MK
10
11/* debug print routines */
12
13#include <stdio.h>
14#include "ctl.h"
15
16print_request(request)
963ce42e 17 CTL_MSG *request;
1f187e51 18{
81379f80 19 extern FILE *debugout;
963ce42e 20
81379f80
KL
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);
1f187e51
MK
27}
28
29print_response(response)
963ce42e 30 CTL_RESPONSE *response;
1f187e51 31{
81379f80
KL
32 extern FILE *debugout;
33
34 printf(debugout
35 , "type is %d, answer is %d, id = %d\n\n", response->type
36 , response->answer, response->id_num);
37 fflush(debugout);
1f187e51 38}