mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
58c557f316
- Fixes segfault - Added test program * RAPIfy the r_util/file.c
15 lines
265 B
C
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;
|
|
}
|