mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
iso14a reader patches [Hagen Fritsch]
This commit is contained in:
parent
7e758047e4
commit
534983d735
12 changed files with 255 additions and 95 deletions
23
client/util.c
Normal file
23
client/util.c
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
void print_hex(const uint8_t * data, const size_t len)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i=0; i < len; i++)
|
||||
printf("%02x ", data[i]);
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
char * sprint_hex(const uint8_t * data, const size_t len) {
|
||||
static char buf[1024];
|
||||
char * tmp = buf;
|
||||
size_t i;
|
||||
|
||||
for (i=0; i < len && i < 1024/3; i++, tmp += 3)
|
||||
sprintf(tmp, "%02x ", data[i]);
|
||||
|
||||
return buf;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue