home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
070.lha
/
fix.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1988-08-09
|
313 b
|
21 lines
#include <stdio.h>
main()
{
register counter=0;
register c;
while(!feof(stdin)){
c=getchar();
if(c==' ' && counter>=77){
putchar('\n');
counter=0;
}
if(c=='\n')
counter=0;
putchar(c);
counter++;
}
fflush(stdout);
fclose(stdout);
}