#include "stdio.h" #define MAXLINE (1024) main(argcnt,argpt) int argcnt; char *argpt[]; { FILE *fpi,*fpo,*fopen(); char *fgetss(); char name; char buff[1024],*pbuff; int len; int c; fpi=fopen(argpt[1],"r",stdout);/*open input file*/ if(argcnt==2) { fputss(" output file name:",stdout);/*conforming*/ scanf("%s",name);/*gets output filename*/ fpo=fopen(name,"w",stdout); fputss(" record length:",stdout);/*gets record length*/ scanf("%d",&len); } c=getc(fpi); if(c!='\n') ungetc(c,fpi); while(*fgetss(buff,MAXLINE,fpi)!=NULL) { *(buff+len)='\0'; for(pbuff=buff;((*pbuff)!=('\0'));pbuff++) { putc((*pbuff),fpo); } while((pbuff-buff)