home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Collection - Online Library - January 1996
/
CKITOS2196.ISO
/
diskette
/
gg244090.dsk
/
unc.dsk
/
UTILS
/
AIXTOOS2.C
next >
Wrap
C/C++ Source or Header
|
1993-08-05
|
368b
|
25 lines
/* usage = AIXTOOS2 <filein >fileout */
#include "stdio.h"
main(int argc, char *argv[], char *envp[])
{
int c;
#ifdef IBMOS2
freopen("","rb",stdin);
freopen("","wb",stdout);
#endif
while( (c = fgetc(stdin)) != EOF) {
if ( c == '\n' ) {
fputc('\r',stdout);
} /* endif */
fputc(c,stdout);
} /* endwhile */
fputc(0x1A,stdout);
}