death to register
[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 <afsconfig.h>
11 #include <afs/param.h>
12
13
14 #include "mit-cpyright.h"
15 #ifndef KERNEL
16 #include <stdio.h>
17 #endif
18 #include <sys/types.h>
19 #include "des.h"
20 #include "des_prototypes.h"
21
22 int
23 des_cblock_print_file(des_cblock * x, FILE * fp)
24 {
25     unsigned char *y = (unsigned char *)x;
26     int i = 0;
27     fprintf(fp, " 0x { ");
28
29     while (i++ < 8) {
30         fprintf(fp, "%x", *y++);
31         if (i < 8)
32             fprintf(fp, ", ");
33     }
34     fprintf(fp, " }");
35
36     return (0);
37 }
38
39 #ifdef DEBUG
40 int
41 des_debug_print(char *area, int x, char *arg1, char *arg2)
42 {
43     ;
44 }
45 #endif