Esercizio numero 1:
codice:#include <stdio.h> int copia (char *, char *); int main (void) { copia ("pippo", "pluto"); return (0); } int copia (char * s, char * t) { char buf[255]; FILE * f1, * f2; if ((f1 = fopen (s, "r")) == NULL) return (0); f2 = fopen (t, "w"); while ((fgets (buf, sizeof (buf), f1)) != NULL) fputs (buf, f2); fclose (f1); fclose (f2); return (1); }