1 /* $Header: print.c 1.4 83/03/28 00:34:25 moore Exp $ */ 2 3 /* debug print routines */ 4 5 #include <stdio.h> 6 #include "ctl.h" 7 8 print_request(request) 9 CTL_MSG *request; 10 { 11 12 printf("type is %d, l_user %s, r_user %s, r_tty %s\n", 13 request->type, request->l_name, request->r_name, 14 request->r_tty); 15 printf(" id = %d\n", request->id_num); 16 fflush(stdout); 17 } 18 19 print_response(response) 20 CTL_RESPONSE *response; 21 { 22 printf("type is %d, answer is %d, id = %d\n\n", response->type, 23 response->answer, response->id_num); 24 fflush(stdout); 25 } 26