dos33fsprogs/dos33fs-utils/char2hex.c

17 lines
197 B
C
Raw Normal View History

2009-08-22 01:41:00 +00:00
#include <stdio.h>
#include "version.h"
int main(int argc, char **argv) {
2016-12-09 04:04:56 +00:00
int input;
while(1) {
input=fgetc(stdin);
if (input==EOF) break;
printf("$%02X,",input|0x80);
}
return 0;
2009-08-22 01:41:00 +00:00
}