summaryrefslogtreecommitdiff
path: root/nacl/cpuid/cbytes.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/cpuid/cbytes.c')
-rw-r--r--nacl/cpuid/cbytes.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/nacl/cpuid/cbytes.c b/nacl/cpuid/cbytes.c
new file mode 100644
index 00000000..bd5d1444
--- /dev/null
+++ b/nacl/cpuid/cbytes.c
@@ -0,0 +1,16 @@
1#include <stdio.h>
2
3int main()
4{
5 char ch;
6 int loop = 0;
7 while (scanf("%c",&ch) == 1) {
8 printf("0x%02x,",255 & (int) ch);
9 if (++loop == 16) {
10 loop = 0;
11 printf("\n");
12 }
13 }
14 printf("0x00\n");
15 return 0;
16}