summaryrefslogtreecommitdiff
path: root/c-embed/main.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-06-19 22:13:49 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-06-19 22:13:49 +0200
commitc616d4e3c3a3abfcfeb5e9d96ddfbf7d3111603a (patch)
tree236d658af6f97a56c20848f6f5994c135fca1316 /c-embed/main.c
downloadprobe-c616d4e3c3a3abfcfeb5e9d96ddfbf7d3111603a.tar.gz
Engage!
Diffstat (limited to 'c-embed/main.c')
-rw-r--r--c-embed/main.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/c-embed/main.c b/c-embed/main.c
new file mode 100644
index 0000000..c0d2f59
--- /dev/null
+++ b/c-embed/main.c
@@ -0,0 +1,19 @@
1#include <stdio.h>
2
3#include "test.h"
4
5int main(void) {
6 printf("Testing embedding of files into binary.\n");
7
8 for (unsigned int i = 0; i < test_txt_len; i++) {
9 printf("%02x ", test_txt[i]);
10 }
11 printf("\n\n");
12
13 for (unsigned int i = 0; i < test_txt_len; i++) {
14 printf("%c", test_txt[i]);
15 }
16 printf("\n\n");
17
18 return 0;
19}