--- In [email protected], Tyler Littlefield <ty...@...> wrote:
>
> does this actually work? it looks like your file pointers are being assigned 
> to NULL in the if statements.

No, it's fine.

To answer the original question, you could supply another argument on the 
command line and change the 'while' loop to a 'for' loop to limit the number of 
characters copied from the input file to the output file.

You could use fgets instead of fgetc to work in lines instead of characters.

Reply via email to