- 250 名前:名無しさん@お腹いっぱい。 mailto:sage [04/07/17 03:33]
- >>245のいってることをCのソースにしてみました。
#include <stdio.h> #include <windows.h> int main() { int c; do { c=fgetc(stdin); if(c==EOF) { break; } if(fputc(c,stdout)==EOF) return 1; if(IsDBCSLeadByte(c)) { c=fgetc(stdin); if(c==EOF) break; if(fputc(c,stdout)==EOF) return 1; if(c=='\\') { if(fputc(c,stdout)==EOF) return 1; } } }while(1); return 0; }
|

|