pull-prototypes-to-head-20020821
[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 RCSID("$Header$");
14
15 #include "mit-cpyright.h"
16 #ifndef KERNEL
17 #include <stdio.h>
18 #endif
19 #include <sys/types.h>
20 #include <des.h>
21 #include "des_prototypes.h"
22
23 int des_cblock_print_file(des_cblock *x, FILE *fp)
24 {
25     unsigned char *y = (unsigned char *) x;
26     register 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 des_debug_print(char *area, int x, char *arg1, char *arg2)
41 {
42     ;
43 }
44 #endif