Files
hapiwiki/util/binary.c
2025-09-09 15:11:17 +09:00

13 lines
249 B
C

#include <stdio.h>
#include "binary.h"
void binary_to_hex_string(const unsigned char *data, const int size,
char *result) {
int i;
for (i = 0; i < size; i++) {
sprintf(result + 2 * i, "%02x", *(data + i));
}
}