dos33fsprogs/dos33_text2ascii.c
Vince Weaver 8019e4d7dd 18 August 2009
+ Fix warnings on recent gcc.
+ Audit much of the extisting dos33 code.

19 August 2009
+ Add integer basic detokenizer
+ Implement lock/unlock in dos33
+ Implement undelete in dos33
+ Implement rename in dos33
2012-05-02 10:50:46 -04:00

23 lines
369 B
C

#include <stdio.h>
#include "version.h"
int main(int argc, char **argv) {
int ch;
while(1) {
ch=fgetc(stdin);
if (feof(stdin)) return 0;
/* clear high byte */
ch=ch&0x7f;
/* convert apple carriage-return to unix linefeed */
if (ch=='\r') ch=('\n');
fputc(ch,stdout);
}
return 0;
}