radare2/libr/util/t/test_file_slurp_hexpairs.c
pancake 58c557f316 * Apply 'whats' fix for r_file_slurp_hexpairs()
- Fixes segfault
  - Added test program
* RAPIfy the r_util/file.c
2009-09-17 14:02:44 +02:00

15 lines
265 B
C

#include <stdio.h>
#include <r_util.h>
int main(int argc, char *argv[]) {
int i, size;
ut8 *ret = r_file_slurp_hexpairs("hexpairs.txt", &size);
if (ret) {
for (i=0;i<size;i++)
putchar(ret[i]);
} else printf("Error processing the file.\n");
return 0;
}