URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i386/] [kernel/] [hexify.c] - Rev 1777
Go to most recent revision | Compare with Previous | Blame | View Log
#include <stdio.h> int main() { int c; int comma=0; int count=0; while((c=getchar())!=EOF) { unsigned char x=c; if(comma) printf(","); else comma=1; if(count==8) { count=0; printf("\n"); } if(count==0) printf("\t"); printf("0x%02X",c); count++; } if(count) printf("\n"); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log