~ubuntu-branches/ubuntu/warty/openafs/warty

« back to all changes in this revision

Viewing changes to src/des/util.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2004-01-10 16:37:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040110163733-jvr0n1uahshlb1uu
Tags: upstream-1.2.11
ImportĀ upstreamĀ versionĀ 1.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: /afs/sipb.mit.edu/project/openafs/debian/cvs/openafs/src/des/util.c,v 1.1.1.4 2001/07/14 22:21:37 hartmans Exp $");
 
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