1f92bf2f2da4232671e38b10c5e864933d9c9c0e
[openafs.git] / src / des / util.c
1 /*
2  * Copyright 1988 by the Massachusetts Institute of Technology.
3  *
4  * For copying and distribution information, please see the file
5  * <mit-cpyright.h>.
6  *
7  * Miscellaneous debug printing utilities
8  */
9
10 #include <afs/param.h>
11 #include <afsconfig.h>
12
13 RCSID("$Header$");
14
15 #include <mit-cpyright.h>
16 #include <stdio.h>
17 #include <sys/types.h>
18 #include <des.h>
19
20 int des_cblock_print_file(x, fp)
21     des_cblock *x;
22     FILE *fp;
23 {
24     unsigned char *y = (unsigned char *) x;
25     register int i = 0;
26     fprintf(fp," 0x { ");
27
28     while (i++ < 8) {
29         fprintf(fp,"%x",*y++);
30         if (i < 8)
31             fprintf(fp,", ");
32     }
33     fprintf(fp," }");
34
35         return(0);
36 }
37
38 #ifdef DEBUG
39 int des_debug_print(area, x, arg1, arg2)
40     char *area;
41     int x;
42     char *arg1;
43     char *arg2;
44 {
45     ;
46 }
47 #endif