#include "main.h" void copyFile(){ char buffer[256]; while(1){ if(!fgets(buffer , sizeof buffer , stdin)) break; fprintf(stdout, "%s" , buffer); } } int main(int argc , char** argv){ copyFile(); }