All pastes #733427 Raw Edit

Stuff

public text v1 · immutable
·published 2007-10-11 20:06 UTC
rendered paste body
#include <stdio.h>
main(argc,argv)
int argc;
char *argv[];
{
FILE *in, *out;
int ch;

if ( argc!=3)
{
printf("grapse sosta zwo\n");
exit(1);
}

if ( ( in = fopen(argv[1],"r")) ==NULL)
{
printf("bale sosto name\n");
exit(1);
}

if ( ( out = fopen(argv[2],"w")) ==NULL)
{
printf("bale 2 sosto name\n");
exit(1);
}

while( ( ch = getc(in)) > 0)
{
putc(ch,out);
}
fclose(in);
fclose(out);

}