logo: add utils to dump file
This commit is contained in:
parent
468387a47f
commit
2e8b0a20ce
|
@ -0,0 +1,25 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
int result;
|
||||
int ch;
|
||||
|
||||
while(1) {
|
||||
result=getchar();
|
||||
if (result<0) break;
|
||||
if (result==0) break;
|
||||
|
||||
ch=result&0x7f;
|
||||
|
||||
if (ch=='\r') {
|
||||
putchar('\n');
|
||||
}
|
||||
else {
|
||||
putchar(ch);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
||||
int result;
|
||||
|
||||
while(1) {
|
||||
result=getchar();
|
||||
if (result<0) break;
|
||||
|
||||
putchar(result&0x7f);
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue