File: hexprint.c

package info (click to toggle)
cryptsetup 2%3A1.0.4%2Bsvn26-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,572 kB
  • ctags: 418
  • sloc: sh: 10,706; ansic: 3,187; makefile: 329; python: 90; perl: 40; sed: 16
file content (12 lines) | stat: -rw-r--r-- 127 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12

#include <stdio.h>

void hexprint(char *d, int n)
{
	int i;
	for(i = 0; i < n; i++)
	{
		printf("%02hhx ", (char)d[i]);
	}
}