Linux练习(函数调用复制文件)

#include <stdio.h>
#include <stdlib.h>
int main()
{
    int c;
    FILE *in,*out;
    in=fopen("file.in","r");
    out=fopen("file.out","w");

    while((c=fgetc(in))!=EOF)
            fputc(c,out);
    exit(0);

}
posted @ 2012-09-06 14:13  Dsp Tian  阅读(2014)  评论(0编辑  收藏  举报